chiark / gitweb /
Makefile: things autogenerated from .pl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Nov 2014 16:57:47 +0000 (16:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Nov 2014 16:57:47 +0000 (16:57 +0000)
Makefile

index 4afba5d42848dca8a22d88a433b96a4b8e94a3cd..d667e227ea737817417e323eb97b1efa28968ba7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,9 @@ stls:         $(addsuffix .auto.stl, $(AUTO_TOPLEVELS))
 
 dovecliptest.stl: doveclip.scad $(AUTO_INCS)
 
+%:             %.pl
+               ./$< >$@.tmp && mv -f $@.tmp $@
+
 %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
                @echo ' write $@'
                $< $@ >$@.tmp