Subversion Repositories svn LFS-FR

Compare Revisions

Ignore whitespace Rev 539 → Rev 540

/trunk/blfs/Makefile
1,6 → 1,8
# Makefile pour la génération du livre BLFS.
# Par Tushar Teredesai <tushar@linuxfromscratch.org>
# 31/01/2004
# $LastChangedBy: randy $
# $Date: 2005-06-15 05:46:50 $
# Ajustez ceci pour correspondre avec votre installation
OUTPUTDIR = $(HOME)/public_html/blfs-book
INSTALL = install
8,26 → 10,11
DOCBOOK = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh
BASEDIR= $(HOME)/public_html/blfs/
TEXBASEDIR= $(HOME)/public_html/blfs-book-tex/
 
NOCHUNKS_OUTPUT=BLFS-BOOK.html
SRCDIR = $(PWD)
 
all: blfs
 
blfs-old: index.xml
@if [ -z $(OUTPUTDIR) ]; then \
echo "Envar OUTPUTDIR is not set!" ; \
exit 1 ; \
fi
@echo "Génération de la version HTML du livre BLFS avec $(JADE)..."
@echo " OUTPUTDIR = $(OUTPUTDIR)"
@$(INSTALL) -d $(OUTPUTDIR)
@cd $(OUTPUTDIR) && $(INSTALL) -d introduction postlfs general \
connect basicnet server content x kde gnome xsoft \
multimedia pst preface appendices other
@cd $(OUTPUTDIR) && $(JADE) -t sgml -D $(DOCBOOK)/html \
-d $(SRCDIR)/blfs.dsl $(DOCBOOK)/dtds/decls/xml.dcl \
$(SRCDIR)/index.xml
 
blfs:
@if [ -z $(BASEDIR) ]; then \
echo "Envar BASEDIR is not set!" ; \
46,18 → 33,27
mkdir -p $(BASEDIR)images; \
fi;
cp images/*.png $(BASEDIR)/images
cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@" \
index.html
cd $(BASEDIR); sed -i -e "s@../images@images@g" \
index.html
cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" *.html
cd $(BASEDIR); sed -i -e "s@../images@images@g" *.html
sh goTidy $(BASEDIR)/
 
nochunks:
@echo "Génération de la version nochunks de BLFS..."
xsltproc --xinclude --nonet -stringparam profile.condition html \
--output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
stylesheets/blfs-nochunks.xsl index.xml
tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
sed -i -e "s@text/html@application/xhtml+xml@g" \
$(BASEDIR)/$(NOCHUNKS_OUTPUT)
 
pdf:
xsltproc --xinclude --nonet --output blfs.fo \
stylesheets/blfs-pdf.xsl \
index.xml
sed -i -e "s/inherit/all/" blfs.fo
/opt/fop/fop.sh blfs.fo blfs.pdf
fop.sh blfs.fo blfs.pdf
$(INSTALL) -d $(BASEDIR)pdf
rm blfs.fo
mv blfs.pdf $(BASEDIR)pdf
66,7 → 62,7
xsltproc --xinclude --nonet --output blfs-print.fo \
stylesheets/blfs-print.xsl index.xml
sed -i -e "s/inherit/all/" blfs-print.fo
/opt/fop/fop.sh blfs-print.fo blfs-print.pdf
fop.sh blfs-print.fo blfs-print.pdf
$(INSTALL) -d $(BASEDIR)print
rm blfs-print.fo
mv blfs-print.pdf $(BASEDIR)print
89,4 → 85,14
$(SRCDIR)/stylesheets/blfs-tex.xsl index.xml
 
validate:
xmllint --noout --valid index.xml
xmllint --noout --nonet --xinclude --postvalid index.xml
 
blfs-patch-list:
@echo "Generating blfs-patch-list..."
xsltproc --xinclude --nonet \
--output blfs-patch-list stylesheets/patcheslist.xsl index.xml
sed -e "s|^.*/||" blfs-patch-list > blfs-patches
sort blfs-patches > blfs-patch-list
rm blfs-patches
 
.PHONY : blfs-patch-list