From d4977006eb4fec6cf56e225b4b613f6e5f355b33 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Thu, 16 Feb 2006 22:59:53 +0000 Subject: Add txt targets --- Makefile.common | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index 507d444..fc8223c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -13,6 +13,7 @@ # distclean -- See "clean" # ${DOCNAME}.pdf -- Builds PDF version of document # pdf -- See "${DOCNAME}.pdf" +# txt -- Make ASCII txt version ######################################################################### ######################################################################### @@ -154,7 +155,7 @@ $(foreach L,${LANGUAGES},$(eval $(call XMLFILES_template,${L}))) TARGETS=all clean distclean fdp-info html html-nochunks pdf po showvars \ tarball rpm rpm-common noarch srpm package-prep package-post \ - src-tarball + src-tarball txt # FIXME: add the .PHONY attribute where the actual target is defined @@ -278,6 +279,24 @@ $(foreach L,${LANGUAGES},$(eval $(call PDF_template,${L}))) .PHONY: pdf pdf:: $(foreach LANG,${LANGUAGES},pdf-$(LANG)) + + +define TXT_template +.PHONY: txt-${1} + +txt-$(1) ${DOCBASE}-$(1).txt:: ${XMLFILES-${1}} ${1}/fdp-info.xml + ${XMLTO} txt $(1)/$(DOCBASE).xml + mv $(DOCBASE).txt $(DOCBASE)-$(1).txt + +distclean:: + ${RM} ${DOCBASE}-${1}.txt +endef + +$(foreach L,${LANGUAGES},$(eval $(call TXT_template,${L}))) + +.PHONY: txt + +txt:: $(foreach LANG,${LANGUAGES},txt-$(LANG)) # ######################################################################### -- cgit