chiark / gitweb /
Makefile: introduce PYLIBS
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 7 Nov 2017 12:42:08 +0000 (12:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 7 Nov 2017 12:42:13 +0000 (12:42 +0000)
Fixes missing dependencies on scad.py and bezier.py

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index d0075d8bfae41b472afeabf34b4102fc41a9b7d9..f6c672a95954ae4066680bd77c2bd7a9bfe1b083 100644 (file)
--- 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))