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)
30
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
33
# Any options you wish to pass.
36
# Script to convert the programs to LaTeX examples which can be included.
39
# Script to collect all examples in 1 file.
42
#######################################################################
43
# No need to edit after this line.
44
#######################################################################
47
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
54
OBJECTS= ex15 ex22 ex29 ex36 ex37 ex38 ex39 ex40 ex46\
55
ex56 ex62 ex65 ex66 ex76 ex77 ex79 ex8 ex80 \
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