From 1f7ca9fd3964481318bbaddfb39acc5de8c7d65d Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 20 Sep 2009 23:10:31 +0200 Subject: Basic makefile structure; making the project at least compilable. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1767149 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +DIRS=externals Utils Database + +all: $(DIRS) + +clean: clean-dirs + +clean-dirs: + for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done + +.PHONY: $(DIRS) + +define DIR_template +$(1): + $$(MAKE) -C $$@ +endef + +$(foreach dir, $(DIRS), $(eval $(call DIR_template, $(dir)))) -- cgit v1.2.3