[yelp-xsl] testdocs: Fix Makefile for new HTML output
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] testdocs: Fix Makefile for new HTML output
- Date: Wed, 18 May 2011 16:01:25 +0000 (UTC)
commit 6ab9622f40323819aaf60fe9e58f54756ac3edba
Author: Shaun McCance <shaunm gnome org>
Date: Mon May 16 20:38:20 2011 -0400
testdocs: Fix Makefile for new HTML output
test/testdocs/Makefile | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/test/testdocs/Makefile b/test/testdocs/Makefile
index 9eee46f..b585412 100644
--- a/test/testdocs/Makefile
+++ b/test/testdocs/Makefile
@@ -16,23 +16,24 @@ test: $(htmls) html/index.html
$(htmls) : html/% : %.xml
@mkdir -p $@
+ @mkdir -p $ -a
xsltproc \
- -o $@/$(patsubst html/%,%.html,$@) \
+ -o $@/ \
--param annotate 'false()' \
--stringparam db.chunk.basename $(patsubst html/%,%,$@) \
$(call htmlargs,$@) $<
xsltproc \
- -o $@/$(patsubst html/%,%-a.html,$@) \
+ -o $ -a/ \
--param annotate 'true()' \
--stringparam db.chunk.basename $(patsubst html/%,%-a,$@) \
$(call htmlargs,$@) $<
html/index.html:
- (echo '<html><body><ul>' && \
- for html in $(htmls); do \
+ (cd html && echo '<html><body><ul>' && \
+ for html in $(sort $(htmls)); do \
base=`basename $$html`; \
- echo "<li><a href='$$base/$${base}.html'>$$base</a>"; \
- echo "(<a href='$$base/$${base}-a.html'>annotated</a>)</li>"; \
+ echo "<li><a href='"`ls $$base/*.html`"'>$$base</a>"; \
+ echo "(<a href='"`ls $$base-a/*.html`"'>annotated</a>)</li>"; \
done && echo '</ul></body></html>') > $@
clean:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]