]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Web update put inside Makefile.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Oct 2007 13:20:00 +0000 (13:20 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Oct 2007 13:20:00 +0000 (13:20 +0000)
darcs-hash:20071023132044-f2ef6-fe2af6aa0a7ae82e539f7a1f9c38ae1f7c6fdaf0.gz

doc/Makefile
doc/index.html

index a3b2e1acd381939a670c787b394c53efb256c044..945fcd67d0bd475d660ba1d604f2cfe8045ccb88 100644 (file)
@@ -26,3 +26,16 @@ PDF_FIGS = $(patsubst %.png,%.pdf,$(PNG_FIGS))
 
 clean:
        rm -f $(SOURCE).{aux,cp,cps,fn,ky,log,pg,toc,tp,vr,vrs} $(PDF_FIGS)
+
+WWW ?= www
+
+web: $(WWW) $(addprefix $(WWW)/,index.html $(SOURCE).html $(wildcard *.png))
+
+$(WWW):
+       mkdir $@
+
+$(WWW)/index.html: index.html
+       sed -e "s/<!-- @LAST_MODIFIED@ -->/`LC_TIME=C TZ= date`/" < $< > $@
+
+$(WWW)/%: %
+       cp -p $^ $@
index 05c3e2df088a7e336bdd6ebcb456a7d79b70bb22..ddc1bc4ad3beaaee6a91892b00162cd3b02ed8bc 100644 (file)
@@ -60,5 +60,5 @@ There is no mailing list yet. Send an email to sojkam1 (at) fel.cvut.cz.
 </ul>
 <hr>
 <address></address>
-<!-- hhmts start -->Last modified: Mon Oct 22 19:29:05 CEST 2007 <!-- hhmts end -->
+Last modified: <!-- @LAST_MODIFIED@ -->
 </body> </html>