DOCUMENT_NAMES="asymmetrie chaosradio copyleft intro mailserviceanbieter mozilla outlook pgp_vs_gpg senselab thunderbird thunderbirdnutzung warumverschluesselung wiefunktionierts winpt" LYX_FILES := $(foreach dir,$(DOCUMENT_NAMES),$(dir)/$(dir).lyx) TEX_FILES := $(patsubst %.lyx,%.tex.$(LYX_FILES)) HTML_FILES := $(patsubst %.lyx,%.html.$(LYX_FILES)) TARGET_FILES := $(forecho dir,$(DOCUMENT_NAMES),_output/$(dir).html) ASC_FILES := $(wildcard *.asc) LINE_STATUS = offline #LATEX2HTMLPREFIX := -no_auto_link -split 0 -init_file ../../convert-scripts/latex2html-init -no_navigation -no_subdir LATEX2HTMLPREFIX := -no_auto_link -split 0 -no_navigation -dir _output .PHONY : clean install-online install-offline # default target (offline) all: $(HTML_FILES) install-%: LINE_STATUS=% online offline: $(HTML_FILE) $(ASC_FILES) $(TARGET_FILES): _output/%.html: %/%.html $(ASC_FILES) cat header.asc nav.asc.$(LINE_STATUS) footer.nav >$@ # create tex files from lyx $(TEX_FILES): %.tex: %.lyx lyx -e latex $*.lyx # original html-files, as they are created by lyx $(HTML_FILES): %/*.tex: % latex2html $(LATEX2HTMLPREFIX) $*/$*.tex -rm WARNINGS $*/$*-labels.pl $*/$*-internals.pl $*/$*.css 2>/dev/null python ../../convert-scripts/mod_html_files.py $@ clean: -rm WARNINGS 2>/dev/null -rm $(TEX_FILES) 2>/dev/null -rm $(HTML_FILES) 2>/dev/null -rm _output/* 2>/dev/null -rm */*.emergency