mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Touch up Makefile
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10267 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
7789a6a933
commit
22bcbddf04
39
Makefile
39
Makefile
@ -39,7 +39,7 @@ lfs: validate profile-html
|
|||||||
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
|
sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
$(Q)$(MAKE) wget-list
|
$(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums
|
||||||
|
|
||||||
pdf: validate
|
pdf: validate
|
||||||
@echo "Generating profiled XML for PDF..."
|
@echo "Generating profiled XML for PDF..."
|
||||||
@ -71,12 +71,10 @@ nochunks: validate profile-html
|
|||||||
@echo "Running Tidy..."
|
@echo "Running Tidy..."
|
||||||
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
||||||
@echo "Running obfuscate.sh..."
|
@echo "Running obfuscate.sh..."
|
||||||
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
$(Q)sed -i -e "s@text/html@application/xhtml+xml@g" \
|
$(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
$(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
$(Q)sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
$(Q)sed -i -e "s@../wget-list@wget-list@" \
|
$(Q)$(MAKE) $(BASEDIR)/wget-list $(BASEDIR)/md5sums
|
||||||
$(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
|
||||||
$(Q)$(MAKE) wget-list
|
|
||||||
|
|
||||||
tmpdir:
|
tmpdir:
|
||||||
@echo "Creating and cleaning $(RENDERTMP)"
|
@echo "Creating and cleaning $(RENDERTMP)"
|
||||||
@ -97,26 +95,23 @@ validate: tmpdir
|
|||||||
profile-html: validate
|
profile-html: validate
|
||||||
@echo "Generating profiled XML for XHTML..."
|
@echo "Generating profiled XML for XHTML..."
|
||||||
$(Q)xsltproc --nonet --stringparam profile.condition html \
|
$(Q)xsltproc --nonet --stringparam profile.condition html \
|
||||||
--output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
|
--output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
|
||||||
$(RENDERTMP)/lfs-full.xml
|
$(RENDERTMP)/lfs-full.xml
|
||||||
|
|
||||||
wget-list:
|
$(BASEDIR)/wget-list: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent
|
||||||
@echo "Generating wget list..."
|
@echo "Generating wget list..."
|
||||||
$(Q)mkdir -p $(BASEDIR)
|
$(Q)mkdir -p $(BASEDIR)
|
||||||
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \
|
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/wget-list \
|
||||||
stylesheets/wget-list.xsl chapter03/chapter03.xml
|
stylesheets/wget-list.xsl chapter03/chapter03.xml
|
||||||
|
|
||||||
md5sums:
|
$(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent
|
||||||
@echo "Generating md5sum file..."
|
@echo "Generating md5sum file..."
|
||||||
$(Q)mkdir -p $(BASEDIR)
|
$(Q)mkdir -p $(BASEDIR)
|
||||||
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/md5sums \
|
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/md5sums \
|
||||||
stylesheets/md5sum.xsl chapter03/chapter03.xml
|
stylesheets/md5sum.xsl chapter03/chapter03.xml
|
||||||
$(Q)sed -i -e "s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.bz2 | cut -d' ' -f1)/" \
|
$(Q)sed -i -e \
|
||||||
$(BASEDIR)/md5sums
|
"s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.bz2 | cut -d' ' -f1)/" \
|
||||||
|
$(BASEDIR)/md5sums
|
||||||
#$(Q)sed -i -e "s/UDEV-MD5SUM/$(shell md5sum udev-config*.tar.bz2 | cut -d' ' -f1)/" \
|
|
||||||
# $(BASEDIR)/md5sums
|
|
||||||
|
|
||||||
|
|
||||||
dump-commands: validate
|
dump-commands: validate
|
||||||
@echo "Dumping book commands..."
|
@echo "Dumping book commands..."
|
||||||
@ -124,7 +119,7 @@ dump-commands: validate
|
|||||||
stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml
|
stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml
|
||||||
|
|
||||||
|
|
||||||
all: lfs nochunks pdf dump-commands md5sums
|
all: lfs nochunks pdf dump-commands
|
||||||
|
|
||||||
|
.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate
|
||||||
|
|
||||||
.PHONY : all dump-commands lfs nochunks pdf profile-html tmpdir validate \
|
|
||||||
validate wget-list maketar md5sums
|
|
||||||
|
Loading…
Reference in New Issue
Block a user