From: Ian Jackson Date: Sun, 5 Nov 2017 16:39:54 +0000 (+0000) Subject: Makefile: prepare for use of commitid X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=70498f0b2be59ca047f45aeb08e9ee89f8dd8c1e;p=moebius3.git Makefile: prepare for use of commitid Signed-off-by: Ian Jackson --- diff --git a/.gitignore b/.gitignore index 36762cf..62075e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ moebius-core.scad *.stl *.gcode +commitid.scad +*.tmp diff --git a/Makefile b/Makefile index cc563a2..0e3f024 100644 --- 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 $@