prez-ppp

Les fichiers pour la démo faite devant ppp - retour accueil

git clone git://bebou.netlib.re/prez-ppp
Log | Files | Refs | README |

makefile (910B)


      1 .DELETE_ON_ERROR:
      2 
      3 audio     != find contents -type f      -name '*.mp3'
      4 sources   != find contents -type f      -name '*.sh'
      5 annexes   != find contents -type f -not -name '*.sh'
      6 
      7 pageshtml         = ${sources:contents/%.sh=public/%.html}
      8 annexescibles     = ${annexes:contents/%=public/%}
      9 dbs               = ${audio:contents/%.mp3=db/%.tsv}
     10 
     11 all: exec ${pageshtml} ${annexescibles} ${dbs}
     12 
     13 clean:; rm -r public/* db/*
     14 
     15 exec:; chmod +x ${sources}
     16 
     17 test  : all
     18 	@echo http://localhost:1312
     19 	busybox httpd -p 1312 -h public
     20 stop  :
     21 	ps -aux | grep 'busybox httpd .*-p.*1312' | grep -v 'grep' | awk '{print $$2}' | xargs kill
     22 
     23 db/%.tsv : contents/%.mp3 maketsv
     24 	@mkdir -p $(shell dirname $@)
     25 	./maketsv $< > $@
     26 
     27 public/%.html : contents/%.sh page layouts/html ${dbs} layouts/audio
     28 	mkdir -p $(shell dirname $@); $< > $@
     29 
     30 public/%      : contents/%
     31 	mkdir -p $(shell dirname $@); cp $< $@
     32 
     33 .PHONY: all clean exec