File: Makefile.doc

package info (click to toggle)
sgb 1:20030623-3
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,868 kB
  • ctags: 28
  • sloc: makefile: 197; sh: 15
file content (42 lines) | stat: -rw-r--r-- 1,204 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
# -*- makefile -*-
#   Makefile for the Stanford GraphBase
#   Stripped down for doc generation only

.SUFFIXES: .dvi .tex .w

.tex.dvi:
	tex $*.tex

.w.c:
	if test -r $*.ch; then ctangle $*.w $*.ch; else ctangle $*.w; fi

.w.tex:
	if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi

.w.dvi:
	$(MAKE) $*.tex
	$(MAKE) $*.dvi

KERNELFILES = gb_flip.w gb_graph.w gb_io.w gb_sort.w
GENERATORFILES = gb_basic.w gb_books.w gb_econ.w gb_games.w gb_gates.w \
        gb_lisa.w gb_miles.w gb_plane.w gb_raman.w gb_rand.w gb_roget.w \
        gb_words.w
DEMOFILES = assign_lisa.w book_components.w econ_order.w football.w \
        girth.w ladders.w miles_span.w multiply.w queen.w roget_components.w \
        take_risc.w word_components.w
MISCWEBS = gb_dijk.w gb_save.w
CHANGEFILES = queen_wrap.ch word_giant.ch
ALMOSTALL = $(KERNELFILES) $(GENERATORFILES) $(DEMOFILES) $(MISCWEBS)

DVIS = $(ALMOSTALL:.w=.dvi) $(CHANGEFILES:.ch=.dvi)

all doc: $(DVIS)

clean:
	rm -f *~ *.tex *.log *.dvi *.toc *.idx *.scn *.ps

queen_wrap.tex: queen.w queen_wrap.ch
	cweave queen.w queen_wrap.ch queen_wrap.tex

word_giant.tex: word_components.w word_giant.ch
	cweave word_components.w word_giant.ch word_giant.tex