Un site pour la promotion de catium - retour accueil
git clone git://bebou.netlib.re/site-catium
Log | Files | Refs | README |
makefile (1039B)
1 .DELETE_ON_ERROR: 2 3 sources != find contents -type f -name '*.sh' 4 annexfiles != find contents -type f -not -name '*.sh' 5 layouts != find layouts -type f 6 7 pages = ${sources:contents/%.sh=public/%.html} 8 annexrules = ${annexfiles:contents/%=public/%} 9 10 all: exec db/galerie.tsv ${pages} ${annexrules} 11 12 test: all; 13 busybox httpd -p 1312 -h public 14 @ echo "http://localhost:1312" 15 stop:; ps -aux | grep 'busybox httpd .*-p.*1312' | grep -v 'grep' | awk '{print $$2}' | xargs -r kill 16 17 clean:; rm -r public/* 18 19 exec:; chmod 755 ${sources} 20 21 deploy: all; rsync -e 'ssh -p 1459' -hvr public/* pi@bebou.netlib.re:/home/pi/catium.bebou.netlib.re/ 22 23 updatescreens:; bin/updatescreens 24 25 db/galerie.tsv: bin/maketsv db/galerie 26 @mkdir -p $(shell dirname $@) 27 ./$< > $@ 28 29 public/index.html : contents/index.sh page ${layouts} db/galerie.tsv 30 @mkdir -p $(shell dirname $@) 31 $< > $@ 32 33 public/%.html : contents/%.sh page ${layouts} 34 @mkdir -p $(shell dirname $@) 35 $< > $@ 36 public/% : contents/% 37 @mkdir -p $(shell dirname $@) 38 cp $< $@