docs-common Makefile.common,1.56,1.57

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Feb 16 23:00:00 UTC 2006


Author: pfrields

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24422/docs-common

Modified Files:
	Makefile.common 
Log Message:
Add txt targets


Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- Makefile.common	15 Feb 2006 14:37:18 -0000	1.56
+++ Makefile.common	16 Feb 2006 22:59:53 -0000	1.57
@@ -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 @@
 
 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 @@
 .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))
 #
 #########################################################################
 




More information about the Fedora-docs-commits mailing list