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

« back to all changes in this revision

Viewing changes to docs/optex/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
 
 
9
 
ifndef FPC
10
 
ifdef PP
11
 
FPC=$(PP)
12
 
endif
13
 
endif
14
 
ifndef FPC
15
 
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
16
 
ifneq ($(FPCPROG),)
17
 
FPCPROG:=$(firstword $(FPCPROG))
18
 
FPC:=$(shell $(FPCPROG) -PB)
19
 
ifneq ($(findstring Error,$(FPC)),)
20
 
override FPC=ppc386
21
 
endif
22
 
else
23
 
override FPC=ppc386
24
 
endif
25
 
endif
26
 
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
27
 
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
28
 
# Unit directory
29
 
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
30
 
 
31
 
 
32
 
# Any options you wish to pass.
33
 
PPOPTS=
34
 
 
35
 
# Script to convert the programs to LaTeX examples which can be included.
36
 
PP2TEX=../pp2tex
37
 
 
38
 
# Script to collect all examples in 1 file.
39
 
MAKETEX=make1tex
40
 
 
41
 
#######################################################################
42
 
# No need to edit after this line.
43
 
#######################################################################
44
 
 
45
 
ifdef UNITDIR
46
 
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
47
 
endif
48
 
 
49
 
.SUFFIXES: .pp .tex
50
 
 
51
 
.PHONY: all tex clean
52
 
 
53
 
OBJECTS=optex
54
 
 
55
 
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
56
 
 
57
 
all : $(OBJECTS)
58
 
 
59
 
tex : $(TEXOBJECTS)
60
 
 
61
 
onetex : tex
62
 
        $(MAKETEX) $(TEXOBJECTS)
63
 
 
64
 
clean : 
65
 
        rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
66
 
        rm -f *.ow *.sw *.exe *.dll
67
 
 
68
 
$(OBJECTS): %: %.pp
69
 
        $(FPC) $(PPOPTS) $*
70
 
 
71
 
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
72
 
        $(PP2TEX) $*