aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 974275be8..b61083d03 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ CHUNK_QUIET=0
PDF_OUTPUT=LFS-BOOK.pdf
NOCHUNKS_OUTPUT=LFS-BOOK.html
XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
+TIDY=/home/manuel/bin/lfs-tidy
lfs:
xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
@@ -24,7 +25,10 @@ lfs:
cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
index.html part1.html part2.html part3.html longindex.html
- sh goTidy $(BASEDIR)/
+ for filename in `find $(BASEDIR) -name "*.html"`; do \
+ $TIDY -config tidy.conf $$filename; \
+ true; \
+ done;
for filename in `find $(BASEDIR) -name "*.html"`; do \
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \