diff options
-rw-r--r-- | Makefile.common | 21 |
1 files changed, 20 insertions, 1 deletions
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)) # ######################################################################### |