Le site arthur.bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |
commit b42142490cbf918b2181d19d064763e0e28513c1 parent 900e782e2a84787afe8917f2f3e6a91634637ed3 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 24 Apr 2024 21:16:18 +0200 Tous les formats d'index.html en règle PHONY Diffstat:
M | makefile | | | 18 | ++++++++++++++---- |
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/makefile b/makefile @@ -36,9 +36,6 @@ public/%.html : contents/%.sh page layouts/html layouts/listearticles contents/s @mkdir -p $(shell dirname $@) url=${url} $< html > $@ -public/index.html : contents/index.sh - @mkdir -p $(shell dirname $@) - url=${url} $< html > $@ public/%.term : contents/%.sh page ${layouts} ${data} @mkdir -p $(shell dirname $@) @@ -56,8 +53,21 @@ public/style.css : contents/style.css @mkdir -p $(shell dirname $@) < $< minify --type css > $@ +public/index.html : contents/index.sh + @mkdir -p $(shell dirname $@) + url=${url} $< html > $@ +public/index.roff : contents/index.sh + @mkdir -p $(shell dirname $@) + url=${url} $< roff > $@ +public/index.md : contents/index.sh + @mkdir -p $(shell dirname $@) + url=${url} $< md > $@ +public/index.term : contents/index.sh + @mkdir -p $(shell dirname $@) + url=${url} $< term > $@ + public/% : contents/% @mkdir -p $(shell dirname $@) cp $< $@ -.PHONY: all clean exec deploy test public/index.html +.PHONY: all clean exec deploy test public/index.*