-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 975 Bytes
/
Makefile
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 = guit
EXAMPLE = guittest
FILE = README $(addsuffix .dtx,$(PACKAGE)) $(addsuffix .ins,$(PACKAGE)) \
$(addsuffix .pdf,$(PACKAGE)) $(addsuffix .pdf,$(EXAMPLE))
DIRECTORY = GuITlogo
.PHONY: all clean clobber distro
all: $(addsuffix .sty,$(PACKAGE)) $(addsuffix .pdf,$(PACKAGE)) \
$(addsuffix .tex,$(EXAMPLE)) $(addsuffix .pdf,$(EXAMPLE))
%.sty: %.dtx
tex $*.ins
$(addsuffix .pdf,$(PACKAGE)): %.pdf: %.dtx %.sty
pdflatex $<
pdflatex $<
makeindex -s gind.ist $*
makeindex -s gglo.ist -o $*.gls $*.glo
pdflatex $<
%.tex: $(addsuffix .dtx,$(PACKAGE))
tex $(addsuffix .ins,$(PACKAGE))
$(addsuffix .pdf, $(EXAMPLE)): %.pdf: %.tex $(addsuffix .sty,$(PACKAGE))
pdflatex $<
pdflatex $<
clean:
rm -fv *~ *.aux *.glo *.gls *.idx *.ilg *.ind *.log *.out *.toc
clobber: clean
rm -fv *.cfg *.sty *.tex *.zip
distro: $(addsuffix .zip,$(DIRECTORY))
$(addsuffix .zip,$(DIRECTORY)): %.zip: $(FILE)
rm -rf $* $@
mkdir $*
cp -a $^ $*
zip -9v $@ $*/*
rm -rf $*