MARKDOWNS := \ README.md HTMLS := \ ${MARKDOWNS:%.md=%.html} \ index.html PDFS :=\ ${HTMLS:%.html=%.pdf} all: ${HTMLS} ${PDFS} echo HTMLS=${HTMLS} echo PDFS=${PDFS} initial-ubuntu-install: sudo apt-get install -y qrencode fritzing openscad index.html: README.html cp $< $@ qrcode: qrencode -l L -v 1 -o qr.png "http://tr.im/4lmn8" qrcode-large: qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot" clean: rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \ 3d-printables/*.x3g 3d-printables/*.stl %.html: %.md markdown $< > $@ %.pdf: %.html htmldoc --numbered --book --no-title --header /// -f $@ $<