cryptocd-archiv/v1.1/doku/Makefile

41 lines
1,021 B
Makefile
Raw Normal View History

LATEX2HTMLPREFIX := -no_auto_link -split 0 -init_file ../_scripts/latex2html-init -no_navigation -no_subdir
TEX_FILES := $(patsubst %.lyx,%.tex,$(wildcard *.lyx))
NEW_INDEXES := $(patsubst %.lyx,%.html,$(wildcard *.lyx))
ASC_FILES := $(wildcard *.asc)
CSS_BILDER = somerights20.png
.PHONY : clean css
all: $(NEW_INDEXES) css
css: $(CSS_BILDER)
$(CSS_BILDER):
cd _bilder; cp $(CSS_BILDER) ..
$(TEX_FILES): %.tex: %.lyx
lyx -e latex $*.lyx
$(NEW_INDEXES): %.html: %.tex $(ASC_FILES)
latex2html $(LATEX2HTMLPREFIX) $*.tex
-rm WARNINGS $*-labels.pl $*-internals.pl $*.css
python ../_scripts/mod_html_files.py $@
#rm $@.temp
cat header.asc >> $@.temp
cat nav.asc >> $@.temp
cat $@ >> $@.temp
cat footer.asc >> $@.temp
mv $@.temp $@
clean:
-rm WARNINGS
-rm $(patsubst %.lyx,%.tex,$(wildcard *.lyx))
-rm $(patsubst %.lyx,%.html,$(wildcard *.lyx))
-rm $(patsubst %.lyx,%.lyx.emergency,$(wildcard *.lyx))
-rm $(patsubst _bilder/%,%,$(wildcard _bilder/*))
#rm -r $(patsubst %.lyx,%,$(wildcard *.lyx))