diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 19:55:42 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 19:55:42 +0100 |
commit | 7de22b92399504daf951c830b3b0d7d7cffc3d9f (patch) | |
tree | 192716ad1fd07c1703e9911cf6bbda0f85db50a8 /makefiles/gmake/sub.mk | |
parent | 03e26d2afeba8d7db58106decf195da924b9bd95 (diff) | |
download | crawler-7de22b92399504daf951c830b3b0d7d7cffc3d9f.tar.gz crawler-7de22b92399504daf951c830b3b0d7d7cffc3d9f.tar.bz2 |
moved makefiles
Diffstat (limited to 'makefiles/gmake/sub.mk')
-rw-r--r-- | makefiles/gmake/sub.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/makefiles/gmake/sub.mk b/makefiles/gmake/sub.mk new file mode 100644 index 0000000..024bb76 --- /dev/null +++ b/makefiles/gmake/sub.mk @@ -0,0 +1,25 @@ +# makefile for a sub package +# +# requires: +# - TOPDIR +# - SUBDIRS +# - INCLUDE_DIRS +# +# provides: +# - target: all targets + +-include $(TOPDIR)/makefiles/gmake/platform.mk +-include $(TOPDIR)/makefiles/gmake/compiler.mk + +.PHONY: all $(SUBDIRS) local_all +all: local_all $(OBJS) $(CPPOBJS) $(BIN_OBJS) $(CPP_BIN_OBJS) $(BINS) $(CPP_BINS) $(CMODULES) $(CPPMODULES) + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d all || exit 1); done) + +.PHONY: test local_test +test: local_test $(OBJS) $(CPPOBJS) $(BIN_OBJS) $(BINS) $(CPP_BINS) $(CMODULES) $(CPPMODULES) + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d test || exit 1); done) + +-include $(TOPDIR)/makefiles/gmake/depend.mk +-include $(TOPDIR)/makefiles/gmake/clean.mk |