mirrored from https://git.2e8.dk/labitat/labitrack
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
18 lines (18 loc) · 558 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 Jcfv pack.tar.xz $(shell cat packlist)
deploy:
tar Jcf - $(shell cat packlist) | ssh space.labitat.dk tar Jxf -