cvs commit: LFS/BOOK Makefile

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Mon May 3 12:59:33 PDT 2004


matthew     04/05/03 13:59:33

  Modified:    BOOK     Makefile
  Log:
  * Fixed Makefile issue when specifying a path that didn't end with /
  
  Revision  Changes    Path
  1.2       +10 -10    LFS/BOOK/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/Makefile,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile	3 May 2004 10:33:11 -0000	1.1
  +++ Makefile	3 May 2004 19:59:32 -0000	1.2
  @@ -1,22 +1,22 @@
  -BASEDIR=~/lfs-book/
  +BASEDIR=~/lfs-book
   
   lfs:
  -	xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
  +	xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR)/ \
   	  stylesheets/lfs-chunked.xsl index.xml
   
  -	if [ ! -e $(BASEDIR)stylesheets ]; then \
  -	  mkdir -p $(BASEDIR)stylesheets; \
  +	if [ ! -e $(BASEDIR)/stylesheets ]; then \
  +	  mkdir -p $(BASEDIR)/stylesheets; \
   	fi;
  -	cp stylesheets/lfs.css $(BASEDIR)stylesheets
  +	cp stylesheets/lfs.css $(BASEDIR)/stylesheets
   
  -	if [ ! -e $(BASEDIR)images ]; then \
  -	  mkdir -p $(BASEDIR)images; \
  +	if [ ! -e $(BASEDIR)/images ]; then \
  +	  mkdir -p $(BASEDIR)/images; \
   	fi;
   	cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
  -	  $(BASEDIR)images
  -	cd $(BASEDIR); sed -i -e "s at ../stylesheets at stylesheets@" \
  +	  $(BASEDIR)/images
  +	cd $(BASEDIR)/; sed -i -e "s at ../stylesheets at stylesheets@" \
   	  index.html part1.html part2.html part3.html longindex.html
  -	cd $(BASEDIR); sed -i -e "s at ../images at images@g" \
  +	cd $(BASEDIR)/; sed -i -e "s at ../images at images@g" \
   	  index.html part1.html part2.html part3.html longindex.html
   
   pdf:
  
  
  



More information about the lfs-book mailing list