1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
subprojects = iem_adaptfilt iem_dp iem_roomsim iem_spec2 iem_tab punish
all: $(subprojects)
.PHONY: all clean archive release submodule update dummy
.PHONY: $(subprojects)
library=iem_utils
version=0.0.$(shell date +%Y%m%d)
archivefile=$(library)-v$(version).tgz
IEM_CFLAGS=-DPD $(CPPFLAGS) -fPIC $(CFLAGS)
IEM_LDFLAGS=-export-dynamic -fPIC -shared $(LDFLAGS)
clean:
-find . -name "*.o" -delete
-find . -name "*.pd_*" -delete
-find . -name "*.dll" -delete
-find . -name "*.tgz" -delete
dummy:
@echo -n
archive: $(archivefile)
release: $(archivefile)
git tag -m "released iem_utils $(version)" "v$(version)"
submodule: .gitmodules
git submodule init
git submodule update
update:
git submodule foreach git checkout master
git submodule foreach git pull
%.tgz: dummy
-rm -f $@
tar --transform "s|^|$(@:.tgz=)/|" --exclude-vcs --exclude='.*' --exclude='*.tgz' --exclude $@ -czf $@ *
iem_adaptfilt iem_dp iem_roomsim iem_spec2 iem_tab punish:
$(MAKE) -C $@ \
$(empty)
|