diff options
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index 89a5f24..dff0878 100644 --- a/Makefile.common +++ b/Makefile.common @@ -52,6 +52,9 @@ endif ifeq (${HTMLCSSEXTRA},) HTMLCSSEXTRA = ${FDPDIR}/docs-common/images/watermark-${LANG}.png endif +ifeq (${RPMINFO},) +RPMINFO = ${PWD}/rpm-info.xml +endif ######################################################################### # Define a macro to locate xmlto(1) so we can choose a specific version # by "make XMLTO=/path/to/xmlto", if we so desire. @@ -193,13 +196,13 @@ diff:: # "rpm-info.xml" file. # define fdp-info_template -fdp-info-$(1).xml:: rpm-info.xml +fdp-info-$(1).xml:: $(RPMINFO) ${XSLTPROC} --stringparam lang $(1) \ --stringparam doctype $(shell \ ${FDPDIR}/docs-common/packaging/doctype \ $(DOCBASE)-$(1).xml \ ) ${FDPDIR}/docs-common/packaging/bookinfo.xsl \ - rpm-info.xml | \ + $(RPMINFO) | \ $(XMLFORMAT) $(XMLFOPTS) > fdp-info-$(1).xml endef # @@ -208,5 +211,14 @@ $(foreach LANG,${LANGUAGES},$(eval $(call fdp-info_template,${LANG}))) fdp-info:: $(foreach LANG,${LANGUAGES},fdp-info-$(LANG).xml) # ######################################################################### +# Make a new changelog entry for an existing rpm-info.xml file. + +clog:: $(RPMINFO) + XMLFORMAT="$(XMLFORMAT)" XSLTPROC="$(XSLTPROC)" \ + ${FDPBIN}/insert-changelog $(RPMINFO).clog + mv -b $(RPMINFO).clog $(RPMINFO) + +# +######################################################################### # End of Makefile.common ######################################################################### |