diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2014-03-25 11:17:42 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2014-03-25 11:17:42 +0000 |
commit | f907a16fd3aa19c6dad1bedbee448931cb6f89f6 (patch) | |
tree | 245182b7a6abbe7d65f45756a83009010e2dbe2f | |
parent | 478bf6d92611b7400de486f53c324aa659cca018 (diff) |
use tex4ht to build html
svn path=/trunk/; revision=17288
-rw-r--r-- | doc/tutorials/externals-howto/Makefile | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/doc/tutorials/externals-howto/Makefile b/doc/tutorials/externals-howto/Makefile index 5ce2fa81..9c430ce8 100644 --- a/doc/tutorials/externals-howto/Makefile +++ b/doc/tutorials/externals-howto/Makefile @@ -9,8 +9,10 @@ HTMLDIR_DE=HOWTO-de LATEX=latex DVIPS=dvips PDFLATEX=pdflatex -LATEX2HTML=latex2html -LATEX2HTML_OPTIONS=-html_version 4.0,latin1,unicode -split 4 +HTLATEX=htlatex +HTLATEX_OPTIONS2=html,2,next,fn-in +HTLATEX_OPTIONS3= +## htlatex HOWTO-externals-en "html,2,next" "" -dHOWTO/ default: en_pdf @@ -22,20 +24,21 @@ TARGETS: default \ .PHONY: $(TARGETS) en_ps: $(HOWTO_EN).ps - -en_pdf: $(HOWTO_EN).pdf - -en_html: $(HOWTO_EN).tex - mkdir -p ${HTMLDIR_EN} - $(LATEX2HTML) $(LATEX2HTML_OPTIONS) -dir $(HTMLDIR_EN) $< - de_ps: $(HOWTO_DE).ps +en_pdf: $(HOWTO_EN).pdf de_pdf: $(HOWTO_DE).pdf -de_html: $(HOWTO_DE).tex - mkdir -p ${HTMLDIR_DE} - $(LATEX2HTML) $(LATEX2HTML_OPTIONS) -dir $(HTMLDIR_DE) $< +en_html: $(HOWTO_EN).tex $(HOWTO_EN).pdf + mkdir -p $(HTMLDIR_EN) + $(HTLATEX) $< "$(HTLATEX_OPTIONS2)" "$(HTLATEX_OPTIONS3)" "-d$(HTMLDIR_EN)/" + cp "$(HOWTO_EN).pdf" "$(HTMLDIR_EN)/pd-externals-HOWTO.pdf" + +#de_html: $(HOWTO_DE).tex +# mkdir -p $(HTMLDIR_DE) +# $(HTLATEX) $< "$(HTLATEX_OPTIONS2)" "$(HTLATEX_OPTIONS3)" "-d$(HTMLDIR_DE)/" +de_html:: + @echo "ignoring target '$@'" ps: en_ps de_ps @@ -44,7 +47,10 @@ pdf: en_pdf de_pdf html: en_html de_html clean: - -rm -f *.aux *.log *.toc *.out *.dvi *~ + -rm -f *.aux *.log *.toc *.out *.dvi + -rm -f *.idv *.lg *.tmp *.xref *.4ct *.4tc + -rm -f *.css *.html + -rm -f *~ cleaner: clean -rm -f *.ps *.pdf @@ -62,7 +68,7 @@ distclean: cleaner $(DVIPS) $*.dvi -%.pdf: +%.pdf: %.tex $(PDFLATEX) $*.tex $(PDFLATEX) $*.tex @@ -71,3 +77,6 @@ examples: $(HOWTO_EXAMPLES) $(HOWTO_EXAMPLES): $(MAKE) -C $@ + + + |