Le site web bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/bebou
Log | Files | Refs |
makefile (877B)
1 .DELETE_ON_ERROR: 2 3 sources != find contents -type f -name '*.sh' 4 annexes != find contents -type f -not -name '*.sh' 5 6 pageshtml = ${sources:contents/%.sh=public/%.html} 7 annexescibles = ${annexes:contents/%=public/%} 8 9 all: exec ${pageshtml} ${annexescibles} 10 11 clean:; rm -r public/* 12 13 exec:; chmod +x ${sources} 14 15 deploy:all; rsync -e 'ssh -p 1459' -hvr public/* pi@bebou.netlib.re:~/bebou.netlib.re/ 16 17 test : all 18 busybox httpd -p 1912 -h public 19 @echo http://localhost:1912 20 stop : 21 ps -aux | grep 'busybox httpd .*-p.*1912' | grep -v 'grep' | awk '{print $$2}' | xargs kill 22 23 public/%.html : contents/%.sh page faq layouts/html 24 mkdir -p $(shell dirname $@); $< > $@ 25 26 public/style.css : contents/style.css 27 @mkdir -p $(shell dirname $@) 28 < $< minify --type css > $@ 29 30 public/% : contents/% 31 mkdir -p $(shell dirname $@); cp $< $@ 32 33 .PHONY: all clean exec