makefile 603 B

12345678910111213141516171819202122232425
  1. SOURCES=CooperativeMultitasking.md
  2. IMG_SOURCES=led_state.dot led_state_simple.dot rtb_state.dot fridge_state.dot \
  3. rtb_state_2.dot rtb_state_3.dot rtb_state_4.dot rtb_state_5.dot \
  4. window_state.dot radio_tuner.dot beer_vat.dot \
  5. window_complex.dot door.dot door2.dot vending.dot
  6. OBJECTS=$(SOURCES:.md=.html)
  7. IMG_OBJECTS=$(IMG_SOURCES:.dot=.png)
  8. CC=pandoc -s -t html -B header.md -A footer.md
  9. CC=pandoc -s -t html --toc --css pandoc.css --toc-depth=3
  10. IM=dot -Tpng
  11. %.html : %.md
  12. $(CC) $< -o $@
  13. %.png: %.dot
  14. $(IM) $< -o $@
  15. all: $(OBJECTS) $(IMG_OBJECTS)
  16. echo "done"
  17. clean:
  18. rm $(OBJECTS)