Commits

Simon Law committed 987b662

Generate pbox.zip automatically

Comments (0)

Files changed (2)

 *.log
 *.pdf
 *.sty
+*.zip
 
 # Shell
 RM = rm -f
+ZIP = zip -9
 
 TEXFILES=\
          $(PACKAGE).aux\
          $(PACKAGE).pdf\
          $(PACKAGE).sty
 
+PKGFILES=\
+         AUTHORS\
+         COPYING\
+         ChangeLog\
+         INSTALL\
+         Makefile\
+         README\
+         $(PACKAGE).dtx\
+         $(PACKAGE).ins\
+         $(PACKAGE).pdf
+
 .PHONY : all install uninstall dvi pdf clean
 
 all : $(PACKAGE).sty $(PACKAGE).dvi $(PACKAGE).pdf ;
 	$(MAKEINDEX) -s $(GGLO) -o $*.gls $*.glo
 	$(LATEX2DVI) $<
 
+$(PACKAGE).zip : $(PKGFILES)
+	$(RM) $@
+	$(ZIP) $@ $^
 
 clean :
-	$(RM) $(TEXFILES)
+	$(RM) $(TEXFILES) $(PACKAGE).zip