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
|
# include ../../Makefile.distrib
include ../../VERSION
JAVA_HOME=/usr/java/jre1.5.0
BUILD_DIR:=$(PWD:/doc/fomanual=)
CDUCE=$(BUILD_DIR)/cduce
FOP=fop-0.20.5/fop.sh
#FOP=fop
all: manual.pdf tutorial.pdf
# tutorial:
# (cd ../../web && $(CDUCE) ../doc/fomanual/xml2fo.cd \
# --arg tutorial.xml tutorial_fo.xml $(VERSION))
# manual:
# (cd ../../web && $(CDUCE) ../doc/fomanual/xml2fo.cd \
# --arg manual.xml manual_fo.xml $(VERSION))
# 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}
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 \
--arg manual.xml manual.fo ${VERSION})
tutorial.fo: ../../web/tutorial.xml ../../web/tutorial/* xml2fo.cdo
(cd ../../web && ${CDUCE} --run -I ../doc/fomanual xml2fo.cdo \
--arg tutorial.xml tutorial.fo ${VERSION})
# tutorial_pdf: tutorial
# $(FOP) tutorial_fo.xml tutorial.pdf
# manual_pdf: manual
# $(FOP) manual_fo.xml manual.pdf
install:
scp manual.pdf tutorial.pdf cduce@di.ens.fr:public_html/papers/
.SUFFIXES: .fo .pdf
.fo.pdf:
${FOP} $< $*.pdf
clean::
rm -f *~
rm -f xml2fo.cdo
rm -f tutorial_fo.xml manual_fo.xml
rm -f tutorial.fo manual.fo
rm -f tutorial.pdf manual.pdf
#
# END
#
|