From 70498f0b2be59ca047f45aeb08e9ee89f8dd8c1e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Nov 2017 16:39:54 +0000 Subject: [PATCH] Makefile: prepare for use of commitid Signed-off-by: Ian Jackson --- .gitignore | 2 ++ Makefile | 4 ++++ 2 files changed, 6 insertions(+) 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 $@ -- 2.30.2