3 # This is the build directory make file, it sets the build directory
4 # and runs the src makefile.
8 include environment.mak
11 DIRS:=./docs ./bin ./obj ./include
12 SUBDIRS:= $(DIRS) ./include/dsync ./obj/libdsync ./obj/test ./obj/cmdline
16 # Chain to the parent make to do the actual building
17 .PHONY: headers library clean veryclean all binary program doc static \
19 all headers library clean veryclean binary program doc static:
20 $(MAKE) -C $(SRCDIR) -f Makefile $@
23 .PHONY: maintainer-clean dist-clean pristine sanity distclean
24 maintainer-clean dist-clean pristine sanity distclean:
26 -rm -f config.cache config.log config.status environment.mak makefile
28 # This makes any missing directories
30 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
32 ifneq ($(words $(MISSING_DIRS)),0)
33 @mkdir $(MISSING_DIRS)
37 ifeq ($(HAVE_C9X),yes)
38 -@rm include/inttypes.h > /dev/null 2>&1
40 @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h