Makefile an das neue Menue-Konzept angepasst

Absolute Angabe der Menue-Datei in relative umgewandelt
This commit is contained in:
lars 2005-05-14 13:19:19 +00:00
parent 2eee0dfbe2
commit a028ae2019
17 changed files with 31 additions and 54 deletions

View file

@ -23,8 +23,7 @@ LATEX2HTMLPREFIX := -no_auto_link -split 0 -no_navigation -no_subdir -dir _outpu
.PHONY : clean online offline clean-targets install all
# default target (offline)
all: $(HTML_FILES)
all: $(TARGET_FILES)
# copy the created files to the destination directory (usually outside of this directory tree)
install: $(TARGET_FILES)
@ -45,16 +44,24 @@ clean-targets:
online: LINE_STATUS=online
offline: LINE_STATUS=offline
online offline: clean-targets $(TARGET_FILES)
# pruefen, ob die Menue-Datei durch eine neuere ersetzt werden muss - ansonsten: ignorieren
menue.lyx online offline: menue_$(LINE_STATUS).lyx
@if diff -qN menue.lyx menue_$(LINE_STATUS).lyx >/dev/null ;\
then true ;\
else cp menue_$(LINE_STATUS).lyx menue.lyx ;\
fi
online offline: $(TARGET_FILES)
# add headers, navigation and footers
$(TARGET_FILES): $(HTML_FILES) $(ASC_FILES)
cat nav.$(LINE_STATUS).asc $(notdir $(basename $@))/$(notdir $@) footer.asc >$@
cat $(notdir $(basename $@))/$(notdir $@) footer.asc >$@
# create tex files from lyx
$(TEX_FILES): %.tex: %.lyx
$(TEX_FILES): menue.lyx $(LYX_FILES)
lyx -e latex $*.lyx
@ -76,4 +83,5 @@ clean:
-rm -r _output 2>/dev/null
-rm $(foreach dir,$(DOCUMENT_NAMES),$(dir)/WARNINGS) 2>/dev/null
-rm $(foreach dir,$(DOCUMENT_NAMES),$(dir)/$(dir).emergency) 2>/dev/null
-rm menue.lyx menue.tex