File: Makefile

package info (click to toggle)
psyco 1.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,316 kB
  • ctags: 3,217
  • sloc: ansic: 23,466; python: 5,142; perl: 1,570; makefile: 165; sh: 88
file content (43 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (3)
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

# Makefile.local should define MKHOWTO to point to the Python
# distribution's Doc/tools/mkhowto, e.g.
# MKHOWTO = ${HOME}/cvs/python/dist/src/Doc/tools/mkhowto
include Makefile.local

PAPER=a4
DVIPS=dvips -N0 -t $(PAPER)

html = psycoguide
dvi  = psycoguide.dvi
ps   = psycoguide.ps
ps-gz= psycoguide.ps.gz
all  = $(html) $(dvi) $(ps) $(ps-gz)

html : $(html)
dvi  : $(dvi)
ps   : $(ps)
ps-gz: $(ps-gz)
all  : $(all)

%: %.tex
	-rm -fr $@
	${MKHOWTO} $<

%.dvi: %.tex
	${MKHOWTO} --paper=$(PAPER) --dvi $<

%.ps.gz: %.ps
	gzip -c < $< > $@

%.ps: %.dvi
	$(DVIPS) -o $@ $<

%.pdf: %.tex
	rm -f $*.log $*.out $*.aux
	pdflatex $<
	pdflatex $<
	rm -f $*.log $*.out $*.aux

clean:
	rm -fr $(all)
	rm -f *.log *.aux *.ind *.idx *.l2h *.toc *.syn