summaryrefslogtreecommitdiff
path: root/support/splint/examples/symbols/Makefile
blob: 80a6aed0c6592c82ee88e996ae03a89495e0e28a (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
# Copyright 2012-2022, Alexander Shibakov
# This file is part of SPLinT
#
# SPLinT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# SPLinT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SPLinT.  If not, see <http://www.gnu.org/licenses/>.

# this Makefile uses a flat directory structure for demonstration
# purposes; the main directory (../..) follows a slightly more
# modular organization scheme.

SYMBOLS_PREREQS = %.tex %.idx ${SPLINT_XTEXSTYLES} ${SPLINT_XTABLES} symtoks.sty 
SYMBOLS_PREREQS += symmap.sty symtricks.sty symfm.sty slimbo.sty
SYMBOLS_PREREQS +=  ${SPLINT_ROOT}cweb/fil.l ${SPLINT_ROOT}cweb/bg.y ${SPLINT_ROOT}cweb/lo.l


include ../../makefile.inc

# rules specific to this example

%.tex:				%.x

%.tex:				%.w

%.tex %.idx:			%.x alphas.hx
				-${CWEAVE} $<

%.gdx:				${SYMBOLS_PREREQS}
				${TEX} $*.tex

%.pdf %.sns:			${SYMBOLS_PREREQS} %.gdy
				${PDFTEX} $*.tex && touch $*.gdy && touch $*.pdf

alphas.hx:
				${MISCCW} --alpha-list --alpha-length=1 $@

docs:				symbols.pdf

clean:				clean_core 
				rm -f symbols.tex

mostlyclean:			clean_temp

distclean:			clean
				cd ${SPLINT_ROOT} && ${MAKE} clean

.PRECIOUS:			${SPLINT_XOTABLES} ${SPLINT_ROOT}cweb/lo.l \
				${SPLINT_ROOT}cweb/fil.l ${SPLINT_ROOT}cweb/dyytab.tex ${SPLINT_ROOT}cweb/gyytab.tex \
				${SPLINT_ROOT}cweb/fyytab.tex symbols.gdy

.INTERMEDIATE:
#.INTERMEDIATE:			symbols.gdx