######################################################################## # Fedora Documentation Project Per-document Makefile # License: GPL # Copyright 2005,2006 Tommy Reynolds, MegaCoder.com ######################################################################## # # Document-specific definitions. # DOCBASE = RELEASE-NOTES PRI_LANG = en_US OTHERS = pt #de it ja_JP pa pl pt_BR ru zh_CN FDPDIR = $(PWD)/../.. ######################################################################## # List each XML file of your document in the template below. Append the # path to each file to the "XMLFILES-${1}" string. Use a backslash if you # need additional lines. Here, we have one extra file "en/para.xml"; that # gets written as "${1}/para.xml" because later, make(1) will need to compute # the necesssary filenames. Oh, do NOT include "fdp-info.xml" because that's # a generated file and we already know about that one... define XMLFILES_template XMLFILES-$(1)= $(1)/ArchSpecific.xml \ $(1)/ArchSpecificPPC.xml \ $(1)/ArchSpecificx86_64.xml \ $(1)/ArchSpecificx86.xml \ $(1)/BackwardsCompatibility.xml \ $(1)/Colophon.xml \ $(1)/DatabaseServers.xml \ $(1)/Desktop.xml \ $(1)/DevelTools.xml \ $(1)/DevelToolsGCC.xml \ $(1)/Extras.xml \ $(1)/Entertainment.xml \ $(1)/Feedback.xml \ $(1)/FileServers.xml \ $(1)/FileSystems.xml \ $(1)/I18n.xml \ $(1)/Installer.xml \ $(1)/Java.xml \ $(1)/Kernel.xml \ $(1)/Legacy.xml \ $(1)/Multimedia.xml \ $(1)/Networking.xml \ $(1)/OverView.xml \ $(1)/PackageChanges.xml \ $(1)/PackageNotes.xml \ $(1)/Printing.xml \ $(1)/ProjectOverview.xml \ $(1)/RELEASE-NOTES.xml \ $(1)/Samba.xml \ $(1)/Security.xml \ $(1)/SecuritySELinux.xml \ $(1)/ServerTools.xml \ $(1)/SystemDaemons.xml \ $(1)/Virtualization.xml \ $(1)/WebServers.xml \ $(1)/Welcome.xml \ $(1)/Xorg.xml endef # ######################################################################## define find-makefile-common for d in docs-common ../docs-common ../../docs-common; do \ if [ -f $$d/Makefile.common ]; then echo "$$d/Makefile.common"; break; fi; done endef include $(shell $(find-makefile-common)) ######################################################################## # # If you want to add additional steps to any of the # targets defined in "Makefile.common", be sure to use # a double-colon in your rule here. For example, to # print the message "FINISHED AT LAST" after building # the HTML document version, uncomment the following # line: #${DOCBASE}-en/index.html:: # echo FINISHED AT LAST ######################################################################## define HACK_FDP_template $(1)/fdp-info.xml:: sed -i 's#legalnotice-opl#legalnotice-relnotes#g' $(1)/fdp-info.xml endef $(foreach LANG,${PRI_LANG} ${OTHERS},$(eval $(call HACK_FDP_template,${LANG})))