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)
29
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
32
# Any options you wish to pass.
35
# Script to convert the programs to LaTeX examples which can be included.
38
# Script to collect all examples in 1 file.
41
#######################################################################
42
# No need to edit after this line.
43
#######################################################################
46
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
55
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
62
$(MAKETEX) $(TEXOBJECTS)
65
rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
66
rm -f *.ow *.sw *.exe *.dll
71
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex