File: Makefile

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (57 lines) | stat: -rwxr-xr-x 1,096 bytes parent folder | download | duplicates (5)
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
#
# doc/Makefile - Build documentation
#
# Written 2001,2002 by Werner Almesberger
# Copyright 2001 Network Robots
# Copyright 2002 Bivio Networks, Werner Almesberger
#

.SUFFIXES:	.tex .txt .dvi .ps .pdf .fig .eps

COMMON=tcng.tex *.inc

FIG=build dlb incoming multi phtcc phtcsim slb srtcm tccsys tcsimsys trtcm
EPS=$(shell for n in $(FIG); do echo $$n.eps; done)
ASC=$(shell for n in $(FIG); do echo $$n.asc; done)

CLEAN=*.aux *.log *.toc *.dvi
SPOTLESS=*.txt *.ps *.pdf
IMMACULATE=$(EPS)

.PHONY:		all ephemeral clean spotless immaculate dep depend

all:		tcng.ps tcng.txt

tcng.dvi:	$(COMMON) $(EPS)
tcng.txt:	$(COMMON) $(ASC)

.tex.txt:
		perl ../scripts/t2x.pl $< >$@ || { rm -f $@; exit 1; }

.tex.dvi:
		../scripts/rlatex $<

.dvi.ps:
		dvips -o - $< | \
		  sed '/%%BeginDocument/,/%%EndDocument/s/%%.*//' >$@ || \
		  { rm -f $@; exit 1; }

.ps.pdf:
		ps2pdf $< $@ || { rm -rf $@; exit 1; }

.fig.eps:
		fig2dev -L eps $< $@

dep depend:

ephemeral:
		echo $(CLEAN) $(SPOTLESS)

clean:
		rm -f $(CLEAN)

spotless:	clean
		rm -f $(SPOTLESS)

immaculate:	spotless
		rm -f $(IMMACULATE)