GNUmakefile 749 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # vim:ft=make
  2. #
  3. _bootstrap_Makefile := $(wildcard [M]akefile)
  4. _bootstrap_config-status := $(wildcard config.status)
  5. ALL_RECURSIVE_TARGETS=
  6. ifeq ($(.DEFAULT_GOAL),Makefile)
  7. @rm Makefile
  8. endif
  9. ifneq ($(_bootstrap_Makefile),)
  10. include Makefile
  11. else
  12. ifneq ($(_bt_config-status),)
  13. $(srcdir)/config.status
  14. $(MAKE) $(AM_MAKEFLAGS) configure
  15. endif
  16. .DEFAULT_GOAL:= basic_build
  17. srcdir= .
  18. configure: bootstrap.sh
  19. @$(srcdir)/bootstrap.sh -a
  20. Makefile: configure
  21. @$(srcdir)/bootstrap.sh -c
  22. .PHONY: basic_build
  23. basic_build: Makefile
  24. @$(MAKE) $(AM_MAKEFLAGS)
  25. endif
  26. ALL_RECURSIVE_TARGETS+= $(AM_RECURSIVE_TARGETS)
  27. ifneq ($(word 2, $(MAKECMDGOALS)), )
  28. ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), )
  29. .NOTPARALLEL:
  30. endif
  31. endif