Shlomi Fish avatar Shlomi Fish committed 23573b4

Added the rtf target to generate Word/RTF and refactored the makefile.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1394 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

Comments (0)

Files changed (1)

fc-solve/arch_doc/docbook/Makefile

 XHTML = $(DOC)
 XHTML_INDEX = $(XHTML)/index.html
 PDF = $(DOC).pdf
+RTF = $(DOC).rtf
+
+DOCMAKE = docmake -v --make 
 
 UPLOAD_PATH = shlomif@shell.berlios.de:/home/groups/fc-solve/htdocs/arch_doc/
 
-all: xhtml pdf
+all: xhtml pdf rtf
 
 xhtml: $(XHTML_INDEX)
 
 $(XHTML_INDEX): $(XML)
-	docmake -v \
+	$(DOCMAKE) \
 		--stringparam "docmake.output.format=xhtml" \
 		--stringparam "docmake.output.work_in_progress=" \
 		-x shlomif-essays-xhtml.xsl	\
 pdf: $(PDF)
 
 $(PDF): $(XML)
-	docmake -v \
+	$(DOCMAKE) \
 		--stringparam "docmake.output.format=fo" \
 		-x shlomif-essays-fo.xsl \
 		-o $@ \
 		pdf $<
 
+rtf: $(RTF)
+
+$(RTF): $(XML)
+	$(DOCMAKE) \
+		--stringparam "docmake.output.format=fo" \
+		-x shlomif-essays-fo.xsl \
+		-o $@ \
+		rtf $<
+
 upload:
-	rsync -a -v --progress $(XHTML) $(XML) $(PDF) $(UPLOAD_PATH)
+	rsync -a -v --progress $(XHTML) $(XML) $(PDF) $(RTF) $(UPLOAD_PATH)
 
 %.show:
 	@echo "$* = $($*)"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.