1
#######################################################################
3
# Makefile to compile all examples and convert them to LaTeX
5
#######################################################################
14
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
16
FPCPROG:=$(firstword $(FPCPROG))
17
FPC:=$(shell $(FPCPROG) -PB)
18
ifneq ($(findstring Error,$(FPC)),)
25
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
26
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
28
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
31
# Any options you wish to pass.
34
# Script to convert the programs to LaTeX examples which can be included.
37
# Script to collect all examples in 1 file.
40
#######################################################################
41
# No need to edit after this line.
42
#######################################################################
45
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
50
.PHONY: all tex clean execute
52
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 \
53
ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18 ex19 ex20 \
54
ex21 ex22 ex23 ex24 ex25 ex26 ex27 ex28 ex29 ex30 \
55
ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
56
ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex50
58
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
60
# This is not the same list as objects, since some of the
61
# tests are interactive.
62
TOTEST=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 \
63
ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18 ex19 ex20 \
64
ex21 ex22 ex23 ex24 ex25 ex26 ex27 ex28 ex29 ex30 \
65
ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
66
ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex50
67
LOGFILE=$(addsuffix .log, $(TOTEST))
78
$(MAKETEX) $(TEXOBJECTS)
81
-rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
82
-rm -f *.ow *.sw *.exe *.dll *.log *.tmp
87
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
90
$(LOGFILE): %.log: %.exe