cvs commit: ALFS/docs/syntax_doc Makefile

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Thu Mar 25 18:58:44 PST 2004


jwrober     04/03/25 19:58:44

  Modified:    docs/syntax_doc Makefile
  Log:
  updates to get all three types complete
  
  Revision  Changes    Path
  1.7       +23 -53    ALFS/docs/syntax_doc/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/ALFS/docs/syntax_doc/Makefile,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Makefile	14 Mar 2004 05:20:42 -0000	1.6
  +++ Makefile	26 Mar 2004 02:58:44 -0000	1.7
  @@ -1,4 +1,4 @@
  -OUTDIR=./output/render/
  +OUTDIR=./output/
   XSLROOTDIR=/usr/share/docbook-xsl/
   
   clean:
  @@ -6,37 +6,30 @@
   	  rm -rf $(OUTDIR); \
   	fi;
   
  -chunks-html:
  +dist-clean: clean
  +	rm *.bz2
  +
  +common: clean
   	if [ ! -e $(OUTDIR) ]; then \
   	  mkdir -p $(OUTDIR); \
   	fi;
   
  +chunks-html: common
   	if [ ! -e $(OUTDIR)stylesheets ]; then \
   	  mkdir -p $(OUTDIR)stylesheets; \
   	fi;
   
  -	if [ ! -e $(OUTDIR)../stylesheets ]; then \
  -	  mkdir -p $(OUTDIR)../stylesheets; \
  -	fi;
  -
   	if [ ! -e $(OUTDIR)images ]; then \
   	  mkdir -p $(OUTDIR)images; \
   	fi;
   
  -	cp index.xml $(OUTDIR)..
  -	cp -R --parents alfs_dtd/* $(OUTDIR)..
  -	cp -R --parents book/* $(OUTDIR)..
  -	cp -R --parents preface/* $(OUTDIR)..
  -
  -	bash stylesheets/entResolver $(OUTDIR)
  -
   	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
   	  stylesheets/alfs-chunked.xsl \
  -	  > $(OUTDIR)../stylesheets/alfs-chunked.xsl
  +	  > $(OUTDIR)stylesheets/alfs-chunked.xsl
   
   	xsltproc --nonet -stringparam base.dir $(OUTDIR) \
  -	  $(OUTDIR)../stylesheets/alfs-chunked.xsl \
  -	  $(OUTDIR)../index.xml
  +	  $(OUTDIR)stylesheets/alfs-chunked.xsl \
  +	  index.xml
   
   	cp stylesheets/alfs.css $(OUTDIR)stylesheets
   
  @@ -69,49 +62,18 @@
   
   	bash stylesheets/goTidy $(OUTDIR)
   	rm $(OUTDIR)tidy.conf
  +	rm $(OUTDIR)stylesheets/alfs-chunked.xsl
   
  -nochunks-html:
  -	if [ ! -e $(OUTDIR) ]; then \
  -	  mkdir -p $(OUTDIR); \
  -	fi;
  -
  -	if [ ! -e $(OUTDIR)stylesheets ]; then \
  -	  mkdir -p $(OUTDIR)stylesheets; \
  -	fi;
  -
  -	if [ ! -e $(OUTDIR)../stylesheets ]; then \
  -	  mkdir -p $(OUTDIR)../stylesheets; \
  -	fi;
  -
  -	if [ ! -e $(OUTDIR)images ]; then \
  -	  mkdir -p $(OUTDIR)images; \
  -	fi;
  -
  -	cp index.xml $(OUTDIR)..
  -	cp -R --parents alfs_dtd/* $(OUTDIR)..
  -	cp -R --parents book/* $(OUTDIR)..
  -	cp -R --parents preface/* $(OUTDIR)..
  -
  -	bash stylesheets/entResolver $(OUTDIR)
  +	cd $(OUTDIR) && tar -cjvf ../nALFS-SYNTAX_DOC-CHUNKS-HTML.tar.bz2 *
   
  +nochunks-html: common
   	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
   	  stylesheets/alfs-onechunk.xsl \
  -	  > $(OUTDIR)../stylesheets/alfs-onechunk.xsl
  +	  > $(OUTDIR)alfs-onechunk.xsl
   
   	xsltproc --nonet -stringparam base.dir $(OUTDIR) \
  -	  $(OUTDIR)../stylesheets/alfs-onechunk.xsl \
  -	  $(OUTDIR)../index.xml
  -
  -	cp stylesheets/alfs.css $(OUTDIR)stylesheets
  -
  -	cp $(XSLROOTDIR)images/*.png \
  -	  $(OUTDIR)images
  -
  -	sed -i -e "s at ../stylesheets at stylesheets@" \
  -	  $(OUTDIR)index.html
  -
  -	sed -i -e "s at ../images at images@g" \
  -	  $(OUTDIR)index.html
  +	  $(OUTDIR)alfs-onechunk.xsl \
  +	  index.xml
   
   	echo indent-spaces: 2 > $(OUTDIR)tidy.conf
   	echo wrap: 78 >> $(OUTDIR)tidy.conf
  @@ -133,4 +95,12 @@
   
   	bash stylesheets/goTidy $(OUTDIR)
   	rm $(OUTDIR)tidy.conf
  +	rm $(OUTDIR)alfs-onechunk.xsl
  +
  +	cd $(OUTDIR) && tar -cjvf ../nALFS-SYNTAX_DOC-NOCHUNKS-HTML.tar.bz2 *
  +
  +flat-text: nochunks-html
  +	lynx -dump $(OUTDIR)index.html > $(OUTDIR)nALFS-SYNTAX_DOC.txt
  +	cd $(OUTDIR) && tar -cjvf ../nALFS-SYNTAX_DOC-TXT.tar.bz2 nALFS-SYNTAX_DOC.txt
   
  +.PHONY: clean dist-clean common chunks-html nochunks-html flat-text
  
  
  



More information about the alfs-log mailing list