mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
tex.mk: Add odt support
Add odt support. Kind of sucks but produces a readable document.
This commit is contained in:
parent
fb61bac836
commit
74d840ba84
1 changed files with 7 additions and 0 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue