| version 1.30, 2005/07/07 15:32:45 |
version 1.31, 2005/09/18 00:57:56 |
|
|
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
| # $Platon: platos/_templates/Rules.make,v 1.29 2005/07/06 22:34:25 rajo Exp $ |
# $Platon: Platon.SK/office/_templates/Rules.make,v 1.30 2005/07/07 15:32:45 rajo Exp $ |
| # |
# |
| |
|
| ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
ps__OUTPUT = $(shell sed 's/\#.*$$//g;' ps__OUTPUT 2>/dev/null) |
| Line 100 STYLESHEET = platonsdg |
|
| Line 100 STYLESHEET = platonsdg |
|
| endif |
endif |
| |
|
| ifeq ($(strip $(STYLESHEET_DIR)),) |
ifeq ($(strip $(STYLESHEET_DIR)),) |
| STYLESHEET_DIR = $(TOP_DIR)/_stylesheets/$(STYLESHEET) |
STYLESHEET_DIR = $(TOP_DIR)/_stylesheets |
| endif |
endif |
| |
|
| ifeq ($(strip $(STYLESHEET_FILES)),) |
ifeq ($(strip $(STYLESHEET_FILES)),) |
| STYLESHEET_FILES = $(shell find $(STYLESHEET_DIR) -mindepth 1 -maxdepth 1 \! \( -name 'CVS' -o -name '.svn' -o -name '.*.sw?' \) -print) |
STYLESHEET_FILES = $(shell find $(STYLESHEET_DIR) -mindepth 1 -maxdepth 2 \! \( -name 'CVS' -o -name '.svn' -o -name '.*.sw?' -o -name .latex2html-init -o -name template.tex \) -print | grep -v /CVS/ | grep -v .svn) |
| endif |
endif |
| |
|
| # }}} |
# }}} |
| Line 383 endif # }}} ifdef PREFIX |
|
| Line 383 endif # }}} ifdef PREFIX |
|
| %.html: $(htm_OUTPUT_first) $(DEPEND_all) htm_OUTPUT |
%.html: $(htm_OUTPUT_first) $(DEPEND_all) htm_OUTPUT |
| @file="`echo '$@'`"; \ |
@file="`echo '$@'`"; \ |
| echo "$(HTML_COMPILER) $${file%.html}.tex"; \ |
echo "$(HTML_COMPILER) $${file%.html}.tex"; \ |
| export HOME=. ; \ |
DOC_STYLESHEET="`awk -v FS='[{-]' '/\\usepackage.*-core}/ { print $$2; }' $${file%.html}.tex`"; \ |
| |
echo "Using stylesheet $$DOC_STYLESHEET"; \ |
| |
export HOME="$$DOC_STYLESHEET" ; \ |
| $(HTML_COMPILER) $${file%.html}.tex; \ |
$(HTML_COMPILER) $${file%.html}.tex; \ |
| ln $${file%.html}/$${file%.html}.html; \ |
ln $${file%.html}/$${file%.html}.html; \ |
| cat $(STYLESHEET).css > $${file%.html}.css |
cat $(STYLESHEET).css > $${file%.html}.css |