summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/galois/Makefile
blob: 58ac721599bed3516edd6094dfb11ddfb331fa0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 '******************************************'