Commits

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

  • Participants
  • Parent commits b589a49

Comments (0)

Files changed (1)

File 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 "$* = $($*)"