blob: 40c665fba6c7a8324fe80a743c10fb314423b2ba (
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
57
58
59
|
CWD = $(notdir $(PWD))
HOMEDIR = $(PWD)
EXAMPLE = eso-ex
PACKAGE = eso-pic
LATEX = elatex
PDFLATEX = pdfelatex
ARCHNAME = $(PACKAGE)-$(shell echo `date +%y%m%d`).zip
ALL = $(EXAMPLE)1.ps $(EXAMPLE)2.ps $(EXAMPLE)3.pdf $(EXAMPLE)4.ps \
$(EXAMPLE)5.ps
all : $(ALL)
$(EXAMPLE)%.ps : $(EXAMPLE)%.dvi
dvips -Pwww $< -o $@
$(EXAMPLE)%.dvi : $(EXAMPLE)%.tex $(PACKAGE).sty
$(LATEX) $<
$(EXAMPLE)%.pdf : $(EXAMPLE)%.tex $(PACKAGE).sty
$(PDFLATEX) $<
$(PACKAGE).sty : $(PACKAGE).ins $(PACKAGE).dtx
echo -e "y\ny" | tex $<
doc : $(PACKAGE).ps
%.ps : %.dvi
dvips -Pwww $< -o $@
$(PACKAGE).dvi : $(PACKAGE).dtx
$(LATEX) $<
makeindex -s gglo.ist -o $(basename $<).gls $(basename $<).glo
$(LATEX) $<
arch :
zip $(ARCHNAME) Makefile $(patsubst %.pdf,%.tex,$(ALL:.ps=.tex)) \
$(PACKAGE).dtx $(PACKAGE).ins -x "*.zip"
@ echo; echo $(ARCHNAME); echo;
clean :
$(RM) *.log *.aux *.toc
veryclean : clean
$(RM) *.dvi *.ps *.pdf
.SECONDARY : $(patsubst %.pdf,%.tex,$(ALL:.ps=.tex)) $(PACKAGE).sty
# Aus der dtx-Datei erzeugte Dateien am Ende nicht wieder löschen.
|