diff options
author | Rob Austein <sra@hactrn.net> | 2019-03-10 13:46:08 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-03-10 13:46:08 -0400 |
commit | fa9a04b06a7c6f62979c506b9999abf6b2eb8208 (patch) | |
tree | 887062e0d0c0ff844eb5fd05d603aad897c77d7e /Makefile |
First public version.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dea4629 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +SRC := $(wildcard demo[0-9]) +BIN := $(addsuffix .zip,${SRC}) + +all: ${BIN} + +%.zip: pyzipper Makefile + ${PYTHON} ./pyzipper $(if $(PYTHON),-e $(PYTHON)) -o $@ $* + ./$@ + +clean: + git clean -dfx + +.PHONY: all clean + +GIT_LS_TREE := $(shell git ls-tree --name-only -r HEAD) + +define DEPENDENCIES +$(1).zip : $$(filter $(1)/%,$${GIT_LS_TREE}) +endef + +$(foreach S,${SRC},$(eval $(call DEPENDENCIES,$(S)))) |