--- Makefile 2001/05/05 19:48:08 1.5 +++ Makefile 2001/05/07 21:44:56 1.6 @@ -2,17 +2,20 @@ # PLies # MAIN MAKEFILE -ver=1.1 +ver=1.2-pre files=Makefile burst.pl INSTALL ChangeLog css/*.css default/*.html #### PERL=perl BURST=../PLies/burst.pl +#### extract presentation name (from directory name) +presentation=`pwd | sed 's/.*\/\([^\/]*\)/\1/g'` + all: index.html clean: - -rm -f slide*.html index*.html *~ + -rm -f slide*.html index*.html *~ $(presentation).zip index.html: all.htm infos.txt Makefile $(PERL) $(BURST) @@ -67,3 +70,8 @@ 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