Debian Codegraph @

texmf-dist/doc/latex/matc3mem/Makefile

raw
1 # Makefile per la classe matc3mem
2 # (c) 2013-2014 Dimitrios Vrettos - [email protected]
3 # v1.1.1 -- 2014/04/10
4
5 NAME = matc3mem
6 INS = $(NAME).ins
7 DTX = $(NAME).dtx
8 IND = $(NAME).ind
9 DOC = $(NAME).pdf
10 IDX = $(NAME).idx
11 GLS = $(NAME).gls
12 GLO = $(NAME).glo
13
14 PDFLATEX = pdflatex --shell-escape
15 MAKEINDEX = makeindex -s gind.ist -o $(IND) $(IDX) && \
16 makeindex -s gglo.ist -o $(GLS) $(GLO)
17
18 FILE_CLEAN = *.aux *.idx *.ilg *.ind *.log *.glo *.gls *.toc *.log *~* *backup
19
20 VERSION = 1_1
21 TAR = $(NAME)-$(VERSION).tar.gz
22 ZIP = $(NAME)-$(VERSION).zip
23
24 # Cambiare la variabile TEXDIR se non si vuole installare nell'albero personale
25 TEXDIR = `kpsewhich --expand-path='$$TEXMFHOME'`
26 INSDIR = $(TEXDIR)/tex/latex/$(NAME)
27 DOCDIR = $(TEXDIR)/doc/latex/$(NAME)
28 SRCDIR = $(TEXDIR)/source/latex/$(NAME)
29
30 .SILENT: clean x-clean dist-tar dist-zip directories help install uninstall
31
32 help:
33 echo ''
34 echo 'Makefile targets:'
35 echo ''
36 echo " help - Questo messaggio"
37 echo ' install - Compila la classe e la documentazione e poi le installa'
38 echo ' uninstall - Disinstallazione completa'
39 echo ' pdf - Crea solo la documentazione senza installarla'
40 echo ' clean - Rimuove i file intermediari'
41 echo ' x-clean - Rimuove i file intermediari e la classe derivata'
42 echo ' dist-tar - Crea una distibuzione (.tar.gz) della classe'
43 echo ' dist-zip - Crea una distibuzione (.zip) della classe'
44 echo ''
45
46 ins: $(INS)
47 latex $<
48
49 pdf: $(DTX)
50 $(PDFLATEX) $<
51 $(MAKEINDEX)
52 $(PDFLATEX) $<
53 $(PDFLATEX) $<
54 $(PDFLATEX) $<
55
56 clean:
57 rm -f $(FILE_CLEAN)
58
59 x-clean:
60 rm -f $(FILE_CLEAN)
61 rm -f $(NAME).cls
62
63
64 dist-tar: x-clean
65 rm -f $(TAR)
66 tar --exclude '*.zip' -zcvf $(TAR) *
67
68 dist-zip: x-clean
69 rm -f $(ZIP)
70 zip -r $(ZIP) . -x '*.tar.gz'
71
72 directories:
73 if [ ! -d $(INSDIR) ]; then \
74 mkdir -p $(INSDIR); \
75 fi
76 if [ ! -d $(DOCDIR) ]; then \
77 mkdir -p $(DOCDIR); \
78 fi
79 if [ ! -d $(SRCDIR) ] ; then \
80 mkdir -p $(SRCDIR) ; \
81 fi
82
83 install: ins pdf directories
84 install -m644 $(NAME).cls $(INSDIR)
85 install -m644 $(DOC) README $(DOCDIR)
86 install -m644 $(INS) $(DTX) Makefile $(SRCDIR)
87 texhash
88
89 uninstall:
90 if [ -d $(INSDIR) ] ; then \
91 rm -rf $(INSDIR); \
92 fi
93 if [ -d $(DOCDIR) ] ; then \
94 rm -rf $(DOCDIR); \
95 fi
96 if [ -d $(SRCDIR) ] ; then \
97 rm -rf $(SRCDIR) ; \
98 fi
99 texhash
100
101 # End of Makefile