summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/galois/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/galois/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/galois/Makefile')
-rw-r--r--macros/latex/contrib/galois/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/macros/latex/contrib/galois/Makefile b/macros/latex/contrib/galois/Makefile
new file mode 100644
index 0000000000..58ac721599
--- /dev/null
+++ b/macros/latex/contrib/galois/Makefile
@@ -0,0 +1,44 @@
+PACKAGE = galois
+
+.PHONY:help
+help:
+ @echo '******************************************'
+ @echo 'make [help] : this help'
+ @echo 'make documentation: create ${PACKAGE}.pdf'
+ @echo 'make distribution : create ${PACKAGE}.tar.gz'
+ @echo 'make cleanup : delete auxiliary files'
+ @echo '******************************************'
+
+.PHONY:documentation
+documentation:
+ @echo '******************************************'
+ @echo 'Make documentation of ${PACKAGE} package...'
+ latex ${PACKAGE}.ins
+ latex ${PACKAGE}.dtx
+ makeindex -s gind.ist ${PACKAGE}
+ makeindex -s gglo.ist -o ${PACKAGE}.gls ${PACKAGE}.glo
+ latex ${PACKAGE}.dtx
+ latex ${PACKAGE}.dtx
+ dvips -Ppdf ${PACKAGE}.dvi
+ ps2pdf ${PACKAGE}.ps
+ @echo '******************************************'
+
+distribution:
+ @echo '******************************************'
+ @echo 'Make distribution of ${PACKAGE} package...'
+ mkdir $(PACKAGE)
+ cp -p README Makefile $(PACKAGE)
+ cp -p $(PACKAGE).dtx $(PACKAGE).ins $(PACKAGE).pdf $(PACKAGE)
+ tar -cvf $(PACKAGE).tar ./$(PACKAGE)
+ rm -rf $(PACKAGE)
+ gzip -9 $(PACKAGE).tar
+ @echo '******************************************'
+
+.PHONY:cleanup
+cleanup:
+ @echo '******************************************'
+ @echo 'Clean up...'
+ rm -f ${PACKAGE}.{aux,dvi,glo,gls,idx,ilg,ind,log,ps,sty,gz}
+ rm -f ${PACKAGE}.dtx~ ${PACKAGE}.ins~ Makefile~ README~
+ @echo '******************************************'
+