chiark / gitweb /
Makefile: try to cope with .m4s with toplevels
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2016 01:06:01 +0000 (01:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2016 01:06:01 +0000 (01:06 +0000)
Makefile

index 7e8704a7430204567e57e086f00b137fcbdab632..4ad0929d5d8b51130e79b812210bcce480a30de4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ USING_AUTOS ?= $(FILAMENTSPOOL_AUTOS) xeno-drivebay-bracket dungeonquest-cone an
 
 AUTO_TOPLEVELS := $(foreach m,$(USING_AUTOS),$(shell $(PLAY)/toplevel-find $m))
 
-AUTO_INCS = funcs.scad
+AUTO_INCS = funcs.scad misc.scad
 
 default:       autoincs scads
 
@@ -43,7 +43,7 @@ autoincs:     $(AUTO_INCS)
 scads:         $(addsuffix .auto.scad, $(AUTO_TOPLEVELS))
 stls:          $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
 
-%.auto.scads:
+%.auto.scads: %.scad
        $(MAKE) $(addsuffix .auto.scad, $(shell $(PLAY)/toplevel-find $*))
 %.auto.stls:
        $(MAKE) $(addsuffix .auto.stl, $(shell $(PLAY)/toplevel-find $*))