--- Makefile 2001/04/17 07:50:05 1.1.1.1 +++ Makefile 2001/09/04 23:12:10 1.11 @@ -1,23 +1,27 @@ ################ -# W3C slide maker - +# PLies # MAIN MAKEFILE - +ver=1.3 +files=Makefile burst.pl INSTALL ChangeLog NEWS css/*.css default/*.html w3c/*.* blue/*.* #### PERL=perl BURST=../PLies/burst.pl -ARCH="UNIX" + +#### extract presentation name (from directory name) +presentation=`pwd | sed 's/.*\/\([^\/]*\)/\1/g'` all: index.html clean: - -rm -f slide*.htm* index*.htm* + -rm -f slide*.html index*.html *~ $(presentation).zip index.html: all.htm infos.txt Makefile $(PERL) $(BURST) +#### create default files + all.htm: echo '' >>$@ echo '' >>$@ @@ -55,5 +59,20 @@ echo 'loc_slide = Slide' >> $@ echo 'loc_of = of' >> $@ +#### make distribution + dist: - cd .. ; tar cfvpz PLies.tar.gz PLies/Makefile PLies/burst.pl PLies/css/*.css PLies/INSTALL + rm -f ChangeLog all.htm infos.txt slide*html index*html + rcs2log -h rot13.org > ChangeLog + rm -Rf PLies-$(ver) + mkdir PLies-$(ver) + cp -rP $(files) PLies-$(ver) + tar cfvpz ../PLies-$(ver).tar.gz PLies-$(ver)/ + rm -Rf PLies-$(ver) + cd .. ; ln -sf PLies-$(ver).tar.gz PLies.tar.gz + +#### pack presentation in zip +pack: all.htm infos.txt Makefile + $(PERL) $(BURST) pack=1 | zip -j -9 -q -@ $(presentation).zip + $(PERL) $(BURST) + @echo created presentation archive $(presentation).zip