~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/stringex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#######################################################################
2
 
#
3
 
# Makefile to compile all examples and convert them to LaTeX
4
 
5
 
#######################################################################
6
 
 
7
 
# Compiler
8
 
ifndef FPC
9
 
ifdef PP
10
 
FPC=$(PP)
11
 
endif
12
 
endif
13
 
ifndef FPC
14
 
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
15
 
ifneq ($(FPCPROG),)
16
 
FPCPROG:=$(firstword $(FPCPROG))
17
 
FPC:=$(shell $(FPCPROG) -PB)
18
 
ifneq ($(findstring Error,$(FPC)),)
19
 
override FPC=ppc386
20
 
endif
21
 
else
22
 
override FPC=ppc386
23
 
endif
24
 
endif
25
 
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
26
 
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
27
 
# Unit directory
28
 
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
29
 
 
30
 
 
31
 
# Any options you wish to pass.
32
 
PPOPTS=
33
 
 
34
 
# Script to convert the programs to LaTeX examples which can be included.
35
 
PP2TEX=../pp2tex
36
 
 
37
 
# Script to collect all examples in 1 file.
38
 
MAKETEX=make1tex
39
 
 
40
 
#######################################################################
41
 
# No need to edit after this line.
42
 
#######################################################################
43
 
 
44
 
ifdef UNITDIR
45
 
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
46
 
endif
47
 
 
48
 
.SUFFIXES: .pp .tex
49
 
 
50
 
.PHONY: all tex clean execute
51
 
 
52
 
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 ex15 ex16 ex17
53
 
 
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))
58
 
 
59
 
 
60
 
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
61
 
 
62
 
all : $(OBJECTS)
63
 
 
64
 
execute: $(LOGFILE)
65
 
 
66
 
 
67
 
tex : $(TEXOBJECTS)
68
 
 
69
 
onetex : tex
70
 
        $(MAKETEX) $(TEXOBJECTS)
71
 
 
72
 
clean : 
73
 
        rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
74
 
        rm -f *.ow *.sw *.exe *.dll *.log *.tmp
75
 
 
76
 
$(OBJECTS): %: %.pp
77
 
        $(FPC) $(PPOPTS) $*
78
 
 
79
 
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
80
 
        $(PP2TEX) $*
81
 
 
82
 
$(LOGFILE): %.log: %.exe 
83
 
        $* > $*.log