chiark / gitweb /
Makefile: remove other job.* files when installing JOB.G
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 13:00:08 +0000 (13:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 13:00:08 +0000 (13:00 +0000)
Makefile

index 688c7ce..bd47f9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,7 @@ AUTOBASE=$(shell echo $(1) | perl -pe 's/,\w+\.auto$$//')
 
 %.gcode-sd:    %.gcode
                mount /media/sd
+               rm -f /media/sd/JOB.* /media/sd/job.*
                cp $^ /media/sd/JOB.G
                sleep 0.5
                umount /media/sd