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 ex11 ex12 ex13 ex14 ex15 ex16 ex17
54
# This might not be the same list as objects, since some of the
55
# tests might be interactive.
56
TOTEST=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 ex15 ex16 ex17
57
LOGFILE=$(addsuffix .log, $(TOTEST))
60
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
70
$(MAKETEX) $(TEXOBJECTS)
73
rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
74
rm -f *.ow *.sw *.exe *.dll *.log *.tmp
79
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
82
$(LOGFILE): %.log: %.exe