roff-templates

Un dépôt contenant des templates catium pour roff - retour accueil

git clone git://bebou.netlib.re/roff-templates
Log | Files | Refs | README |

makefile (562B)


      1 .DELETE_ON_ERROR:
      2 
      3 sources != find contents -type f      -name '*.sh'
      4 
      5 roff = ${sources:contents/%.sh=public/%.roff}
      6 pdfs = ${sources:contents/%.sh=public/%.pdf}
      7 
      8 all: exec ${roff} ${pdfs}
      9 
     10 clean:; rm -r public/*
     11 
     12 exec:; chmod +x ${sources}
     13 
     14 public/%.roff : contents/%.sh letter layouts/letter
     15 	@mkdir -p $(shell dirname $@)
     16 	$< > $@
     17 
     18 public/%.pdf : public/%.roff letter layouts/letter
     19 	@mkdir -p $(shell dirname $@)
     20 	< $< groff -ms -Kutf8 -Tpdf -dpaper=a4 -P-pa4 > $@
     21 
     22 public/%      : contents/%
     23 	@mkdir -p $(shell dirname $@)
     24 	cp $< $@
     25 
     26 .PHONY: all clean exec