add second hole subsubsection and picture
[challenge-bot] / curriculum / makefile
index ab55f8cdf5374abdb2a50a6038cbdcb25676b4da..08764ae3b68bb84e7413f65f8356cbe113ab3297 100644 (file)
@@ -1,3 +1,9 @@
+all:challenge-bot.html
+
+.PHONY: autobuild
+autobuild:
+       ./autobuild.bash
+
 square.png: square.scad makefile
        @openscad \
          --render \
@@ -64,8 +70,19 @@ 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 \
+               arduino-to-deck/keep-holes-far-apart.png \
+               makefile
+       @skribilo $< > $@
 
 clean:
        @rm -f \