chiark / gitweb /
Makefile: prepare for use of commitid
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 16:39:54 +0000 (16:39 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 16:41:10 +0000 (16:41 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile

index 36762cf4d35c141581d3315b16f85ac1507510e9..62075e7ccbd19516abba21b78a26f009a64d775d 100644 (file)
@@ -1,3 +1,5 @@
 moebius-core.scad
 *.stl
 *.gcode
+commitid.scad
+*.tmp
index cc563a20ff3a5569ee7d0f4e9da069654853d875..0e3f0242aedf740ef4a2ebb8096091439a830338 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
 
 all: moebius-core.scad
 
+PLAY = /home/reprap/play
+
+$(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
                ./$< >$@.tmp && mv -f $@.tmp $@