summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-06-28 19:49:45 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-06-28 19:49:45 +0000
commit5e54ba7aa27b95d1e0568693915e735ab8058ff7 (patch)
tree1c2743605a6cce00edb82b5f15b9a3f08f6ace30 /Makefile
downloadlabitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.gz
labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.xz
labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.zip
Initial version
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..315ea01
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+SUBDIRS=$(shell find . -mindepth 2 -maxdepth 2 -type f ! -ipath '*deps*' -iname makefile | rev | cut -d/ -f2- | rev)
+SUBDIRS_CLEAN=$(SUBDIRS:%=%_clean)
+TARGETS=$(SUBDIRS)
+.SILENT: all loop $(TARGETS)
+.PHONY: all loop $(TARGETS)
+all: $(SUBDIRS)
+loop:
+ echo Starting build loop
+ sh -c 'while sleep 0.05; do $(MAKE) --silent; done'
+clean: $(SUBDIRS_CLEAN)
+$(SUBDIRS):
+ $(MAKE) -C $@
+$(SUBDIRS_CLEAN):
+ make -C $(subst _clean,,$@) clean
+pack:
+ tar zcfv pack.tar.gz $(shell cat packlist)