summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/crossword/Makefile
blob: e674b29df73c42cdffcb202995afcb89408b766f (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
45
46
47
48
49
50
51
52
53
54
55
56
#******************************************************************************
#* $Id: Makefile,v 1.9 2009/09/13 08:37:19 gene Exp gene $
#******************************************************************************
#* Author: Gerd Neugebauer
#*=============================================================================

INSTALLDIR = /usr/local/lib/texmf/tex/latex/cwpuzzle

FILES	   = cwpuzzle.dtx	\
	     cwpuzzle.ins	\
	     Makefile		\
	     README

LATEX      = latex
PDFLATEX   = pdflatex
MAKEINDEX  = makeindex
RM         = rm -f
INSTALL    = install
MKDIR      = mkdir

#*=============================================================================

all: cwpuzzle.sty cwpuzzle.pdf

cwpuzzle.sty sty: cwpuzzle.dtx cwpuzzle.ins
	$(RM) cwpuzzle.cls cwpuzzle.sty
	$(PDFLATEX) cwpuzzle.ins

cwpuzzle.dvi dvi: cwpuzzle.dtx cwpuzzle.sty
	$(LATEX) cwpuzzle.dtx
	$(LATEX) cwpuzzle.dtx
	$(MAKEINDEX) -s gind.ist cwpuzzle
	$(MAKEINDEX) -s gglo.ist -o cwpuzzle.gls cwpuzzle.glo
	$(LATEX) cwpuzzle.dtx

cwpuzzle.pdf pdf: cwpuzzle.dtx cwpuzzle.sty cwpuzzle.gls
	$(PDFLATEX) cwpuzzle.dtx
	$(PDFLATEX) cwpuzzle.dtx
	$(MAKEINDEX) -s gind.ist cwpuzzle
	$(MAKEINDEX) -s gglo.ist -o cwpuzzle.gls cwpuzzle.glo
	$(PDFLATEX) cwpuzzle.dtx

cwpuzzle.gls:

zip dist: ${FILES} cwpuzzle.pdf
	zip cwpuzzle-`awk '/^\\\\xdef\\\\fileversion/{print $$2}' cwpuzzle.dtx`.zip \
	    ${FILES} cwpuzzle.pdf

clean:
	$(RM) cwpuzzle.log cwpuzzle.aux cwpuzzle.glo cwpuzzle.gls \
	      cwpuzzle.idx cwpuzzle.ilg cwpuzzle.ind cwpuzzle.toc

veryclean: clean
	$(RM) cwpuzzle.cls cwpuzzle.sty cwpuzzle.dvi cwpuzzle.pdf

#