1
#######################################################################
3
# Makefile to compile all examples and convert them to LaTeX
5
#######################################################################
15
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
17
FPCPROG:=$(firstword $(FPCPROG))
18
FPC:=$(shell $(FPCPROG) -PB)
19
ifneq ($(findstring Error,$(FPC)),)
26
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
27
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
31
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
34
# Any options you wish to pass.
37
# Script to convert the programs to LaTeX examples which can be included.
40
# Script to collect all examples in 1 file.
43
#######################################################################
44
# No need to edit after this line.
45
#######################################################################
48
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
55
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
58
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
65
$(MAKETEX) $(TEXOBJECTS)
68
rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
69
rm -f *.ow *.sw *.exe *.dll
74
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex