configure.mak 959 B

12345678910111213141516171819202122232425262728
  1. # -*- make -*-
  2. # This make fragment is included by the toplevel make to handle configure
  3. # and setup. It defines a target called startup that when run will init
  4. # the build directory, generate configure from configure.in, create aclocal
  5. # and has rules to run config.status should one of the .in files change.
  6. # Input
  7. # BUILDDIR - The build directory
  8. # CONVERTED - List of files output by configure $(BUILD) is prepended
  9. # The caller must provide depends for these files
  10. # It would be a fairly good idea to run this after a cvs checkout.
  11. BUILDDIR=build
  12. .PHONY: startup
  13. startup: configure $(BUILDDIR)/config.status $(addprefix $(BUILDDIR)/,$(CONVERTED))
  14. configure: aclocal.m4 configure.in
  15. autoconf
  16. aclocal.m4:
  17. aclocal -I buildlib
  18. $(BUILDDIR)/config.status: configure
  19. test -e $(BUILDDIR) || mkdir $(BUILDDIR)
  20. (HERE=`pwd`; cd $(BUILDDIR) && $$HERE/configure)
  21. $(addprefix $(BUILDDIR)/,$(CONVERTED)):
  22. (cd $(BUILDDIR) && ./config.status)