LANG = en DOCS_SETUP_PATH= ../../docs-common XSLPDF = $(DOCS_SETUP_PATH)/xsl/main-pdf.xsl XSLHTML = $(DOCS_SETUP_PATH)/xsl/main-html-nochunks-relnotes.xsl XSLPDFCOMMONS = ${XSLPDF} XSLHTMLCOMMONS = ${XSLHTML} XMLCOMMONSPATH=${DOCS_SETUP_PATH}/common XMLCOMMONS=${XMLCOMMONSPATH}/cvs-en.xml \ ${XMLCOMMONSPATH}/draftnotice-en.xml \ ${XMLCOMMONSPATH}/fedora-entities-en.ent \ ${XMLCOMMONSPATH}/fedora-entities-en.xml \ ${XMLCOMMONSPATH}/legacynotice-en.xml \ ${XMLCOMMONSPATH}/legalnotice-en.xml \ ${XMLCOMMONSPATH}/obsoletenotice-en.xml .SUFFIXES: .SUFFIXES: .html .pdf .xml all: README-${LANG}.html \ RELEASE-NOTES-${LANG}.html \ RELEASE-NOTES-${LANG}.txt \ README-${LANG}.txt #README-${LANG}.pdf RELEASE-NOTES-${LANG}.pdf %.pdf: %.xml xmlto pdf -x ${XSLPDF} $< %.html: %.xml ${RM} -r ${@:.html=} xmlto html -x ${XSLHTML} -o ${@:.html=} $< mkdir -p ${@:.html=}/stylesheet-images mkdir -p ${@:.html=}/figs cp $(DOCS_SETUP_PATH)/stylesheet-images/*.png ${@:.html=}/stylesheet-images cp ./figs/*.png ${@:.html=}/figs cp $(DOCS_SETUP_PATH)/css/fedora.css ${@:.html=} mv ${@:.html=}/${@:.html=.proc} ${@:.html=}/$@ ln -sf ${@:.html=}/$@ $@ %.txt: %.xml xmlto txt $< # mv $@ RELEASE-NOTES-${LANG} # FIXME eula.txt: eula.py # FIXME python -c "import py_compile; py_compile.compile('eula.py')" # Note: keep "RELEASE-NOTES-en.xml" first, for now. RNFILES=RELEASE-NOTES-en.xml daemons.xml database-servers.xml \ desktop.xml development-tools.xml feedback.xml file-servers.xml \ file-systems.xml hardware-reqs.xml install-notes.xml intro.xml \ java-package.xml kernel.xml misc-server.xml multimedia.xml \ networking.xml overview.xml package-movement.xml \ package-notes.xml printing.xml project-overview.xml samba.xml \ security.xml server-tools.xml splash.xml web-servers.xml \ xorg.xml # README-${LANG}.pdf: README-en.xml # README-${LANG}.html: README-en.xml RELEASE-NOTES-${LANG}.pdf: ${RNFILES} ${XMLCOMMONS} ${XSLPDFCOMMONS} RELEASE-NOTES-${LANG}.html: ${RNFILES} ${XMLCOMMONS} ${XSLHTMLCOMMONS} RELEASE-NOTES-${LANG}.txt: ${RNFILES} ${XMLCOMMONS} clean: ${RM} ChangeLog ChangeLog.xml distclean clobber: clean ${RM} ChangeLog-${LANG}.html ChangeLog.txt ${RM} -r README-${LANG}.pdf README-${LANG}.html README-${LANG}.txt ${RM} -r RELEASE-NOTES-${LANG}.pdf RELEASE-NOTES-${LANG}.html \ RELEASE-NOTES-${LANG} RELEASE-NOTES-${LANG}.txt # If you have the "cvs2cl" package installed, then you can make # fancy HTML ChangeLogs ChangeLogs: ${RM} ChangeLog* ${MAKE} ChangeLog.txt ${MAKE} ChangeLog-${LANG}.html ChangeLog.txt: LANG=C cvs2cl -f ChangeLog.txt ChangeLog.xml: LANG=C cvs2cl --xml --xml-encoding UTF-8 -f ChangeLog.xml ChangeLog-${LANG}.html: ChangeLog.xml xsltproc -o $@ /usr/share/xml/cvs2cl/cl2html.xslt $<