damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

Makefile (280B)


      1 
      2 POSTS=$(wildcard *.gmi)
      3 HTMLS=$(POSTS:.gmi=.html)
      4 
      5 
      6 all: $(HTMLS)
      7 
      8 clean: fake
      9 	rm -f $(HTMLS)
     10 
     11 dist: all
     12 	rsync -avzP ./ charon:/www/damus.io/log/
     13 
     14 %.html: %.gmi head.html tail.html
     15 	./gmi2md < $< | pandoc -f markdown -t html -o - | cat head.html - tail.html > $@
     16 
     17 .PHONY: fake