help: echo "- help : this help" echo "- all: produces knowledge.pdf and knowledge.sty" echo "- ctan: creates the knowledge-ctan.zip file for CTAN" echo "- clean" echo "- knowledge.zip" echo "- knowledge-sources.zip" echo "- sources" all: knowledge.sty: knowledge.dtx knowledge-utils.dtx knowledge-configuration.dtx latex all.ins clean: make -CRegression clean rm -f *.aux *.glo *.idx *.aux *.synctex.gz *.out *.toc *.kaux *.diagnose *.log rm -f *.bbl *.out *.bbl *.ind *.ilg *.idx rm -f knowledge.sty rm -f knowledge.pdf knowledge-utils.pdf knowledge-configuration.pdf knowledge-example.pdf rm -f knowledge-sources.zip knowledge-sources-complete.zip knowledge.zip rm -f knowledge-ctan.zip ctan: knowledge-ctan.zip knowledge.pdf:knowledge.aux pdflatex "\def\nocode{1} \input{knowledge.dtx}" pdflatex "\def\nocode{1} \input{knowledge.dtx}" pdflatex "\def\nocode{1} \input{knowledge.dtx}" knowledge.aux: knowledge.dtx knowledge.sty pdflatex knowledge.dtx sources: clean knowledge-sources.zip knowledge-sources-complete.zip knowledge-sources-complete.zip: clean \rm -f knowledge-sources-complete.zip zip knowledge-sources-complete.zip *.* makefile Regression/* cp knowledge-sources-complete.zip ../knowledge-sources-complete-`date +%y-%m-%d_%H:%M`.zip knowledge-ctan.zip: knowledge.pdf knowledge.sty all.ins README.txt makefile rm -f knowledge-ctan.zip rm -rf knowledge mkdir knowledge cp knowledge.pdf knowledge.sty knowledge/ cp knowledge.dtx knowledge-utils.dtx knowledge-configuration.dtx knowledge/ cp makefile all.ins knowledge-example.tex README.txt knowledge/ zip knowledge-ctan.zip knowledge/* rm -rf knowledge knowledge-sources.zip: knowledge.dtx rm -f knowledge-sources.zip zip knowledge-sources.zip makefile knowledge.dtx knowledge-utils.dtx knowledge-configuration.dtx all.ins knowledge-example.tex README.txt cp knowledge-sources.zip ../knowledge-sources-`date +%y-%m-%d_%H:%M`.zip knowledge.zip: knowledge.pdf knowledge.sty knowledge-example.tex README.txt rm -f knowledge.zip rm -rf knowledge mkdir knowledge cp knowledge.pdf knowledge.sty knowledge-example.tex README.txt knowledge/ zip knowledge.zip knowledge/* rm -rf knowledge publish: knowledge.zip knowledge-sources.zip cp knowledge.pdf ~/Travail/Web/public_html/Knowledge/ cp knowledge.zip ~/Travail/Web/public_html/Knowledge/knowledge--lastversion.zip cp knowledge.zip ~/Travail/Web/public_html/Knowledge/knowledge-`date +%Y-%m-%d`.zip cp knowledge-sources.zip ~/Travail/Web/public_html/Knowledge/knowledge-sources-`date +%Y-%m-%d`.zip