forked from YannickChevalier/hevea-mathjax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (54 loc) · 1.44 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#### Standard configuration parameters
# Compile using ocamlopt, to use ocamlc set TARGET=byte
TARGET=opt
# Install prefix
PREFIX?=/usr/local
# Library directory of hevea
LIBDIR=$(PREFIX)/lib/hevea
# Where to install programms
BINDIR=$(PREFIX)/bin
#Where to install hevea.sty
LATEXLIBDIR=$(PREFIX)/lib/hevea
##### Advanced configuration parameters
SUF=
DIR=
OCAMLC=$(DIR)ocamlc$(SUF)
#OCAMLFLAGS=-w +a-4-9 -warn-error +a
OCAMLFLAGS=-w +a-4-9-41-45
OCBFLAGS=-j 4 -classic-display
#### End of configuration parameters
#### The Makefile uses ocamlbuild if present.
PGM=hevea.byte hacha.byte esponja.byte bibhva.byte
PGMNATIVE=$(PGM:.byte=.native)
.PRECIOUS: %.ml
all: $(TARGET)
install: config.sh
./install.sh $(TARGET)
byte: ocb-byte
opt: ocb-opt
both: ocb-both
include libs.def
config.sh: Makefile libs.def handle402.sh
@( cat handle402.sh &&\
echo PGM=\"$(PGM)\" &&\
echo PGMNATIVE=\"$(PGMNATIVE)\" &&\
echo BINDIR=$(BINDIR) &&\
echo LIBDIR=$(LIBDIR) &&\
echo LATEXLIBDIR=$(LATEXLIBDIR) &&\
echo OCAMLFLAGS=\"$(OCAMLFLAGS)\" &&\
echo OCBFLAGS=\"$(OCBFLAGS)\" &&\
echo ALLLIB=\"$(ALLLIB)\" && \
echo HTMLLIB=\"$(HTMLLIB)\" && \
echo TEXTLIB=\"$(TEXTLIB)\" && \
echo INFOLIB=\"$(INFOLIB)\") > $@
clean:: config.sh
sh ocb.sh clean && rm config.sh
ocb-byte: config.sh
sh ocb.sh byte
ocb-opt: config.sh
sh ocb.sh opt
ocb-both: config.sh
sh ocb.sh both
ocb: ocb-$(TARGET)
clean::
rm -f *~ #*# html/*~ html/#*# text/*~ text/#*# info/*~ info/#*#