Makefile 1.7 KB
Newer Older
1
# include ../../Makefile.distrib
2
include ../../VERSION
3
JAVA_HOME=/usr/java/jre1.5.0
4
5
BUILD_DIR:=$(PWD:/doc/fomanual=)
CDUCE=$(BUILD_DIR)/cduce
6
7
FOP=fop-0.20.5/fop.sh 
#FOP=fop
8

9
all: manual.pdf tutorial.pdf 
10

11
12
13
# tutorial:
# 	(cd ../../web && $(CDUCE) ../doc/fomanual/xml2fo.cd  \
#             --arg tutorial.xml tutorial_fo.xml $(VERSION))
14

15
16
17
# manual:
# 	(cd ../../web && $(CDUCE) ../doc/fomanual/xml2fo.cd  \
#             --arg manual.xml manual_fo.xml $(VERSION))
18

19
20
21
22
23
24
25
26
27
28
29
30
# tutorial.fo: xml2fo.cd ../../web/tutorial.xml ../../web/tutorial/*.xml ../../web/siteTypes.cd
# 	(cd ../../web && ${CDUCE} ../doc/fomanual/xml2fo.cd \
# 		--arg tutorial.xml tutorial.fo ${VERSION})

# manual.fo: xml2fo.cd ../../web/manual.xml ../../web/manual/*.xml ../../web/siteTypes.cd
# 	(cd ../../web && ${CDUCE} ../doc/fomanual/xml2fo.cd  \
# 		--arg manual.xml manual.fo ${VERSION})

echo:
	@echo ${PWD}
	@echo ${BUILD_DIR}
	@echo ${CDUCE}
31

32
33
34
35
36
xml2fo.cdo: xml2fo.cd ../../web/siteTypes.cd
	${CDUCE} --compile -I ../../web xml2fo.cd

manual.fo: ../../web/manual.xml ../../web/manual/* xml2fo.cdo
	(cd ../../web && ${CDUCE} --run -I ../doc/fomanual xml2fo.cdo \
37
		--arg manual.xml manual.fo ${VERSION})
38

39
40
41
42
tutorial.fo: ../../web/tutorial.xml ../../web/tutorial/* xml2fo.cdo
	(cd ../../web && ${CDUCE} --run -I ../doc/fomanual xml2fo.cdo \
		--arg tutorial.xml tutorial.fo ${VERSION})

43
44
45
46
47
# tutorial_pdf: tutorial
# 	$(FOP) tutorial_fo.xml tutorial.pdf

# manual_pdf: manual
# 	$(FOP) manual_fo.xml manual.pdf 
48

49
50
install:
	scp manual.pdf tutorial.pdf cduce@di.ens.fr:public_html/papers/
51

52
53
54
55
56
57
58
.SUFFIXES: .fo .pdf

.fo.pdf:
	${FOP} $< $*.pdf

clean::
	rm -f *~
59
	rm -f xml2fo.cdo
60
61
62
	rm -f tutorial_fo.xml manual_fo.xml
	rm -f tutorial.fo manual.fo
	rm -f tutorial.pdf manual.pdf
63

64
65
#
# END
66
#