blob: d22110baafb134624d9ed5c22991b296c66575f5 (
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
|
# this Makefile uses a flat directory structure for demonstration
# purposes; the main directory (../..) follows a slightly more
# modular organization scheme.
SPLINT_ROOT = $(shell pwd)/../..
SYMBOLS_PREREQS = %.tex %.idx ${SPLINT_XTEXSTYLES} ${SPLINT_ROOT}/cweb/bo.tok symtoks.sty
SYMBOLS_PREREQS += ${SPLINT_XPTABLES} ${SPLINT_XLTABLES} symmap.sty ${SPLINT_ROOT}/cweb/bg.y
include ${SPLINT_ROOT}/makefile.inc
# rules specific to this example
%.tex: %.w
%.tex %.idx: %.w
${CWEAVE} $<
%.gdx: ${SYMBOLS_PREREQS}
${TEX} $*.tex
%.pdf %.sns: ${SYMBOLS_PREREQS} %.gdy
${PDFTEX} $*.tex && touch $*.gdy && touch $*.pdf
docs: symbols.pdf
clean: clean_core
rm -f symbols.tex
mostlyclean: clean_temp
distclean: clean
cd ${SPLINT_ROOT} && ${MAKE} clean
.PRECIOUS: symbols.gdy
.INTERMEDIATE: symbols.gdx
|