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)


 XHTML_INDEX = $(XHTML)/index.html
 PDF = $(DOC).pdf
+RTF = $(DOC).rtf
+DOCMAKE = docmake -v --make 
-all: xhtml pdf
+all: xhtml pdf rtf
 xhtml: $(XHTML_INDEX)
-	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 $<
-	rsync -a -v --progress $(XHTML) $(XML) $(PDF) $(UPLOAD_PATH)
+	rsync -a -v --progress $(XHTML) $(XML) $(PDF) $(RTF) $(UPLOAD_PATH)
 	@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
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.