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=ex1 ex2 ex3 ex4 ex5 ex6 ex7 logmouse
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