From: Ian Jackson Date: Tue, 7 Nov 2017 12:42:08 +0000 (+0000) Subject: Makefile: introduce PYLIBS X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=68d62dca25605004986789084dc7c1592e27fad5;p=moebius3.git Makefile: introduce PYLIBS Fixes missing dependencies on scad.py and bezier.py Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index d0075d8..f6c672a 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ USING_AUTOS = moebius $(shell set -xe; $(PLAY)/commitid.scad.pl >commitid.scad.tmp; cmp commitid.scad.tmp commitid.scad || mv -f commitid.scad.tmp commitid.scad ) -moebius-core.scad: genscad moebius.py +PYLIBS = $(shell echo *.py) + +moebius-core.scad: genscad $(PYLIBS) ./$< >$@.tmp && mv -f $@.tmp $@ AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))