diff --git a/documents/Makefile b/documents/Makefile new file mode 100644 index 0000000..2dac9ae --- /dev/null +++ b/documents/Makefile @@ -0,0 +1,49 @@ +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 + diff --git a/documents/footer.asc b/documents/footer.asc new file mode 100644 index 0000000..9543dc4 --- /dev/null +++ b/documents/footer.asc @@ -0,0 +1,32 @@ +
+CryptoCD v1.1.1 - die aktuelle Version findest du unter: http://eduforge.org/wiki/wiki/cryptocd

+Creative Commons
+Falls du die CD weitergeben willst, dann lies diese Seite. + + +
+ + + diff --git a/documents/header.asc b/documents/header.asc new file mode 100644 index 0000000..6ef6bd7 --- /dev/null +++ b/documents/header.asc @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/documents/nav.asc.offline b/documents/nav.asc.offline new file mode 100644 index 0000000..598c0bb --- /dev/null +++ b/documents/nav.asc.offline @@ -0,0 +1,34 @@ + diff --git a/documents/nav.asc.online b/documents/nav.asc.online new file mode 100644 index 0000000..b381d8b --- /dev/null +++ b/documents/nav.asc.online @@ -0,0 +1,34 @@ +