--- Makefile 2001/04/17 07:50:05 1.1.1.1 +++ Makefile 2001/05/07 21:44:56 1.6 @@ -1,23 +1,27 @@ ################ -# W3C slide maker - +# PLies # MAIN MAKEFILE - +ver=1.2-pre +files=Makefile burst.pl INSTALL ChangeLog css/*.css default/*.html #### 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,19 @@ 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 + @echo created presentation archive $(presentation).zip