logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git

Makefile (1562B)


  1. TEMPLATES_EN = templates/head.xml templates/en/nav.xsl templates/en/footer.shtml
  2. .PHONY: all
  3. all: bookmarks.html notes/index.xhtml linux-audio-output images/avatar.png images/avatar_HD.png articles/2022\ Summary.html
  4. bookmarks.html: bookmarks.xbel bookmarks.xsl $(TEMPLATES_EN)
  5. xsltproc --nonet bookmarks.xsl bookmarks.xbel | xmllint --xinclude --encode utf-8 --nofixup-base-uris --nsclean - | sed '1d' >|$@
  6. articles/2022\ Summary.html: articles/2022\ Summary.xml entry.xsl $(TEMPLATES_EN)
  7. xsltproc --nonet --param feedURL "'https://hacktivis.me/feed.atom'" entry.xsl articles/2022\ Summary.xml | xmllint --xinclude --encode utf-8 --nofixup-base-uris --nsclean - | sed '1d' >|"$@"
  8. .PHONY: linux-audio-output
  9. linux-audio-output: images/linux-audio-output.png images/linux-audio-output.svg images/linux-audio-output-current.png images/linux-audio-output-current.svg
  10. images/linux-audio-output.png: images/linux-audio-output.dot
  11. dot -Tpng $< >|$@
  12. images/linux-audio-output.svg: images/linux-audio-output.dot
  13. dot -Tsvg $< >|$@
  14. images/linux-audio-output-current.dot: images/linux-audio-output.dot images/linux-audio-output-obsolete.txt
  15. grep -v -f images/linux-audio-output-obsolete.txt $< > $@
  16. sed -i 's;Linux Audio Output APIs[^"]*;Linux Audio Output APIs (current-only);' $@
  17. images/linux-audio-output-current.png: images/linux-audio-output-current.dot
  18. dot -Tpng $< >|$@
  19. images/linux-audio-output-current.svg: images/linux-audio-output-current.dot
  20. dot -Tsvg $< >|$@
  21. .PHONY: notes/index.xhtml
  22. notes/index.xhtml: notes_index.pm
  23. ./notes_index.pm >|$@