cvs commit: ALFS/docs/syntax_doc Makefile

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Sun Feb 22 19:07:06 PST 2004


jwrober     04/02/22 20:07:06

  Added:       docs/syntax_doc Makefile
  Log:
  Makefile
  
  Revision  Changes    Path
  1.1                  ALFS/docs/syntax_doc/Makefile
  
  Index: Makefile
  ===================================================================
  BASEDIR=/cygdrive/c/CVSWORK/alfs-syntax-doc/
  XSLROOTDIR=/usr/share/docbook-xsl/
  
  clean:
  	if [ -e $(BASEDIR) ]; then \
  	  rm -rf $(BASEDIR); \
  	fi;
  
  chunks-html:
  	if [ ! -e $(BASEDIR) ]; then \
  	  mkdir -p $(BASEDIR); \
  	fi;
  
  	if [ ! -e $(BASEDIR)/stylesheets ]; then \
  	  mkdir -p $(BASEDIR)/stylesheets; \
  	fi;
  
  	if [ ! -e $(BASEDIR)/images ]; then \
  	  mkdir -p $(BASEDIR)/images; \
  	fi;
  
  	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
  	  stylesheets/alfs-chunked.xsl \
  	  > $(BASEDIR)/stylesheets/alfs-chunked.xsl
  
  	xsltproc --nonet -stringparam base.dir $(BASEDIR) \
  	  $(BASEDIR)/stylesheets/alfs-chunked.xsl index.xml
  
  	cp stylesheets/alfs.css $(BASEDIR)/stylesheets
  
  	cp $(XSLROOTDIR)/images/*.png \
  	  $(BASEDIR)/images
  
  	sed -i -e "s at ../stylesheets at stylesheets@" \
  	  $(BASEDIR)/alfs_dtd.html $(BASEDIR)/index.html $(BASEDIR)/preface.html
  
  	sed -i -e "s at ../images at images@g" \
  	  $(BASEDIR)/alfs_dtd.html $(BASEDIR)/index.html $(BASEDIR)/preface.html
  
  
  
  



More information about the alfs-log mailing list