21 lines
489 B
Makefile
21 lines
489 B
Makefile
|
LATEX2HTMLPREFIX := -split 0 -init_file ../.latex2html-init -no_navigation
|
||
|
|
||
|
TEX_FILES := $(patsubst %.lyx,%.tex,$(wildcard *.lyx))
|
||
|
NEW_INDEXES := $(patsubst %.lyx,%/index.html,$(wildcard *.lyx))
|
||
|
|
||
|
.PHONY : clean
|
||
|
|
||
|
all : $(NEW_INDEXES)
|
||
|
|
||
|
$(TEX_FILES): %.tex: %.lyx
|
||
|
lyx -e latex $*.lyx
|
||
|
|
||
|
$(NEW_INDEXES): %/index.html: %.tex
|
||
|
latex2html $(LATEX2HTMLPREFIX) $*.tex
|
||
|
python mod_html_files.py $@
|
||
|
|
||
|
clean :
|
||
|
rm $(patsubst %.lyx,%.tex,$(wildcard *.lyx))
|
||
|
rm -r $(patsubst %.lyx,%,$(wildcard *.lyx))
|
||
|
|