tex.mk: Add odt support

Add odt support. Kind of sucks but produces a readable document.
This commit is contained in:
Jan Lindemann 2010-03-06 17:54:38 +00:00 committed by Jan Lindemann
commit 74d840ba84

View file

@ -136,6 +136,7 @@ ps: dirs $(OUT).ps.zip
txt: dirs $(OUT).txt.zip
html: dirs $(OUT).html.zip
pdf: dirs $(OUT).pdf.zip
odt: dirs $(OUT).odt
# generate from remote rules
%.png: $(TEX_TMPL_DIR)/%.fig
@ -276,6 +277,11 @@ $(OUTPUT).pdf: $(GENERATED)
$(OUT).pdf.zip: $(OUTPUT).pdf
zip $@ $<
$(OUTPUT).odt: $(GENERATED)
@echo "-- creating odt file"
htlatex $(MAIN).tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo" "-cvalidate"
mv $(MAIN).odt $(OUTPUT).odt
html_install: $(HTMLDIR)
@echo "-- installing html to $(TARGET_HOST):$(TARGET_DIR) as user $(TARGET_USER)"
$(CVS_RSH) -l $(TARGET_USER) $(TARGET_HOST) -C "\
@ -287,6 +293,7 @@ html_install: $(HTMLDIR)
clean:
@echo "-- cleaning up ..."
rm -rf *.aux *.toc *.dvi *.pdf *.ps *~ *.log *.done *.rep \
*.4ct *.4tc *.4of *.4oo *.4os *.4og */*.4og *.css *.html *.idv *.lg *.xref *.odt \
*.lol *.bak *.idx *.ilg *.ind *.out *.brf .\#* \#* \
$(NEWDIRS) $(OUTPUT).txt \
$(GENERATED) \