summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-02-16 22:59:53 +0000
committerPaul W. Frields <stickster@gmail.com>2006-02-16 22:59:53 +0000
commitd4977006eb4fec6cf56e225b4b613f6e5f355b33 (patch)
treea8e5df78835ec0713dca1f29ff86798673a65108 /Makefile.common
parent40bf50bf2cbf62e48dbb2a60f5d6374df9fadecf (diff)
downloadfedora-doc-utils-d4977006eb4fec6cf56e225b4b613f6e5f355b33.tar.gz
fedora-doc-utils-d4977006eb4fec6cf56e225b4b613f6e5f355b33.tar.xz
fedora-doc-utils-d4977006eb4fec6cf56e225b4b613f6e5f355b33.zip
Add txt targets
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common21
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))
#
#########################################################################