Le site arthur.bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |
makefile (2257B)
1 .DELETE_ON_ERROR: 2 3 url=http://localhost:1412 4 url=http://arthur.bb.netlib.re 5 6 sources != find contents -type f -name '*.sh' -and -not -name 'fig*.sh' -and -not -name 'weekdays*' 7 annexes != find contents -type f -not -name '*.sh' 8 9 pageshtml = ${sources:contents/%.sh=public/%.html} 10 annexescibles = ${annexes:contents/%=public/%} 11 sourcescibles = ${sources:contents/%=public/%} 12 tsv = public/articles.tsv 13 atom = public/feed.atom 14 termpages = ${sources:contents/%.sh=public/%.term} 15 mdpages = ${sources:contents/%.sh=public/%.md} 16 roffpages = ${sources:contents/%.sh=public/%.roff} 17 18 all: exec ${tsv} ${pageshtml} ${annexescibles} ${sourcescibles} ${termpages} ${mdpages} ${roffpages} ${atom} 19 20 clean:; rm -r public/* 21 22 exec:; chmod +x ${sources} 23 24 deploy:all; rsync -hvr public/* meso@bb:~/arthur.bebou.netlib.re/ 25 26 test : all 27 @echo http://localhost:1412 28 busybox httpd -p 1412 -h public 29 stop : 30 ps -aux | grep 'busybox httpd .*-p.*1412' | grep -v 'grep' | awk '{print $$2}' | xargs kill 31 32 public/articles.tsv : makearticlestsv ${sources} 33 @mkdir -p $(shell dirname $@) 34 ./$< > $@ 35 36 public/%.html : contents/%.sh page layouts/html layouts/listearticles 37 @mkdir -p $(shell dirname $@) 38 url=${url} $< html > $@ 39 40 41 public/%.term : contents/%.sh page ${layouts} ${data} 42 @mkdir -p $(shell dirname $@) 43 url=${url} $< term > $@ 44 45 public/%.roff : contents/%.sh page ${layouts} ${data} 46 @mkdir -p $(shell dirname $@) 47 url=${url} $< roff > $@ 48 49 public/%.md : contents/%.sh page ${layouts} ${data} 50 @mkdir -p $(shell dirname $@) 51 url=${url} $< md > $@ 52 53 public/style.css : contents/style.css 54 @mkdir -p $(shell dirname $@) 55 < $< minify --type css > $@ 56 57 public/index.html : contents/index.sh 58 @mkdir -p $(shell dirname $@) 59 url=${url} $< html > $@ 60 public/index.roff : contents/index.sh 61 @mkdir -p $(shell dirname $@) 62 url=${url} $< roff > $@ 63 public/index.md : contents/index.sh 64 @mkdir -p $(shell dirname $@) 65 url=${url} $< md > $@ 66 public/index.term : contents/index.sh 67 @mkdir -p $(shell dirname $@) 68 url=${url} $< term > $@ 69 70 public/feed.atom : atomic public/articles.tsv layouts/atom* 71 ./$< > $@ 72 73 public/% : contents/% 74 @mkdir -p $(shell dirname $@) 75 cp $< $@ 76 77 .PHONY: all clean exec deploy test public/index.*