MARKDOWNS := \
README.md
HTMLS := \
${MARKDOWNS:%.md=%.html} \
index.html
PDFS :=\
${HTMLS:%.html=%.pdf}
all: ${HTMLS} ${PDFS}
echo HTMLS=${HTMLS}
echo PDFS=${PDFS}
index.html: README.html
cp $< $@
qrcode:
qrencode -l L -v 1 -o qr.png "http://tr.im/4lmn8"
qrcode-long:
qrencode -l L -v 1 -o qr.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 $@ $<