makefile.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- make -*-
  2. # This is the build directory make file, it sets the build directory
  3. # and runs the src makefile.
  4. ifndef NOISY
  5. .SILENT:
  6. endif
  7. include environment.mak
  8. SRCDIR=@top_srcdir@
  9. DIRS:=./docs ./bin ./obj ./include
  10. SUBDIRS:= $(DIRS) ./include/dsync ./obj/libdsync ./obj/test ./obj/cmdline
  11. BUILD:=$(shell pwd)
  12. export BUILD
  13. # Chain to the parent make to do the actual building
  14. .PHONY: headers library clean veryclean all binary program doc static \
  15. veryclean/local
  16. all headers library clean veryclean binary program doc static:
  17. $(MAKE) -C $(SRCDIR) -f Makefile $@
  18. # Purge everything.
  19. .PHONY: maintainer-clean dist-clean pristine sanity distclean
  20. maintainer-clean dist-clean pristine sanity distclean:
  21. -rm -rf $(DIRS)
  22. -rm -f config.cache config.log config.status environment.mak makefile
  23. # This makes any missing directories
  24. .PHONY: dirs
  25. MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
  26. dirs:
  27. ifneq ($(words $(MISSING_DIRS)),0)
  28. @mkdir $(MISSING_DIRS)
  29. else
  30. @echo > /dev/null
  31. endif
  32. ifeq ($(HAVE_C9X),yes)
  33. -@rm include/inttypes.h > /dev/null 2>&1
  34. else
  35. @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
  36. endif