autobuild challenge-bot.html and reload in browser
[challenge-bot] / curriculum / makefile
index 53c01e9c5993712a33f7b8774d0887a5e7a0dbf6..8ef3a0fb402aaf807efaf5cd6476e31c2ead6299 100644 (file)
@@ -1,5 +1,9 @@
 all:challenge-bot.html
 
+.PHONY: autobuild
+autobuild:
+       ./autobuild.bash
+
 square.png: square.scad makefile
        @openscad \
          --render \
@@ -66,8 +70,18 @@ translate.html: translate.scm \
                makefile
        @skribilo translate.scm > translate.html
 
-challenge-bot.html: challenge-bot.scm
-       @skribilo challenge-bot.scm > challenge-bot.html
+%.png:%.svg makefile
+       @inkscape \
+         --export-png $@ \
+         --file $< \
+         > /dev/null
+
+challenge-bot.html: challenge-bot.scm \
+               arduino-to-deck/screw-cross-section.png \
+               arduino-to-deck/6-32-screw.png \
+               arduino-to-deck/4-place-arduino-closeup.png \
+               makefile
+       @skribilo $< > $@
 
 clean:
        @rm -f \