blob: 9d55f72d6530bfb20968e071ab423a7d1286f519 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
PACKAGE=srcredact
WD = $(shell pwd)
CURRDIR = $(notdir ${WD})
TEXFILES = srcredact.tex
PODS = srcredact.pod
MAN1 = ${PODS:%.pod=%.1}
SAMPLEPDFS = \
twain1-default.pdf twain1-uppercase.pdf twain1-nobonds.pdf \
twain2-default.pdf twain2-uppercase.pdf twain2-nobonds.pdf
DOCS = ${TEXFILES:%.tex=%.pdf} ${MAN1} ${SAMPLEPDFS}
SCRIPTS = srcredact.pl
all: ${DOCS}
perl -c ${SCRIPTS}
chmod a+x ${SCRIPTS}
%.pdf: %.tex srcredact-man.tex
pdflatex $<
- for file in *.aux; do bibtex $$file; done
pdflatex $<
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log || \
grep -q '^Package pdfscreen Warning: TOC file not available' $*.log ||\
grep -q '^Package natbib Warning: Citation(s) may have changed' $*.log)\
do pdflatex $*; done
srcredact-man.tex: srcredact.pod
pod2latex -out $@ -h1level 2 $<
%.1: %.pod
pod2man -c "Text tools" -r "1.0" $< >$@
twain1-%.tex: twain1.tex srcredact.pl
perl srcredact.pl -e $* twain1.tex > $@
twain2-%.tex: twain2.tex srcredact.pl
perl srcredact.pl -e $* twain2.tex > $@
twain2.tex: twain1.tex twain-edited.tex
perl srcredact.pl -u nobonds twain1.tex twain-edited.tex > $@
clean:
$(RM) *.aux *.bbl *.dvi *.log *.out *.toc *.blg *.lof *.lot *.zip \
*.ps *.tgz depend *.4* *.css *.idv *.lg *.xref *~ *.tmp \
srcredact-man.tex
.PRECIOUS: \
twain1-uppercase.tex twain1-default.tex twain1-nobonds.tex \
twain2-uppercase.tex twain2-default.tex twain2-nobonds.tex \
twain2.tex
distclean: clean
$(RM) ${DOCS} *.1 twain1-* twain2*
archive: all clean
cd ..; \
tar -czvf $(PACKAGE).tgz --exclude 'debug*' \
--exclude '*~' --exclude '*.tgz' --exclude '*.zip' \
--exclude CVS $(CURRDIR); \
mv $(PACKAGE).tgz $(CURRDIR); \
cd $(CURRDIR)
zip: all clean
cd ..; \
zip -r $(PACKAGE).zip $(CURRDIR) \
-x 'debug*' -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x '*/CVS/*'; \
mv $(PACKAGE).zip $(CURRDIR); \
cd $(CURRDIR)
|