cvs commit: ALFS/nALFS/doc/hackers_guide Makefile

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Sat May 29 13:16:26 PDT 2004


jwrober     04/05/29 14:16:26

  Added:       nALFS/doc/hackers_guide Makefile
  Log:
  *Add a Makefile
  
  Revision  Changes    Path
  1.1                  ALFS/nALFS/doc/hackers_guide/Makefile
  
  Index: Makefile
  ===================================================================
  OUTDIR=./output/
  XSLROOTDIR=/usr/share/docbook-xsl/
  
  clean:
  	if [ -e $(OUTDIR) ]; then \
  	  rm -rf $(OUTDIR); \
  	fi;
  
  	if [ -e nALFS-HACKERS-GUIDE ]; then \
  	  rm -rf nALFS-HACKERS-GUIDE; \
  	fi;
  
  dist-clean: clean
  	if [ -e *.bz2 ]; then \
  	  rm *.bz2; \
  	fi;
  
  	if [ -e *.html ]; then \
  	  rm *.html; \
  	fi;
  
  	if [ -e *.txt ]; then \
  	  rm *.txt; \
  	fi;
  
  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)images ]; then \
  	  mkdir -p $(OUTDIR)images; \
  	fi;
  
  	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
  	  stylesheets/alfs-chunked.xsl \
  	  > $(OUTDIR)stylesheets/alfs-chunked.xsl
  
  	xsltproc -nonet -stringparam base.dir $(OUTDIR) \
  	  $(OUTDIR)stylesheets/alfs-chunked.xsl \
  	  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@../images at g" \
  	  $(OUTDIR)alfs_dtd/*.html $(OUTDIR)preface/*.html
  
  	echo indent-spaces: 2 > $(OUTDIR)tidy.conf
  	echo wrap: 78 >> $(OUTDIR)tidy.conf
  	echo tab-size: 8 >> $(OUTDIR)tidy.conf
  	echo input-encoding: latin1 >> $(OUTDIR)tidy.conf
  	echo output-encoding: latin1 >> $(OUTDIR)tidy.conf
  	echo newline: CRLF >> $(OUTDIR)tidy.conf
  	echo write-back: yes >> $(OUTDIR)tidy.conf
  	echo markup: yes >> $(OUTDIR)tidy.conf
  	echo show-warnings: no >> $(OUTDIR)tidy.conf
  	echo quiet: yes >> $(OUTDIR)tidy.conf
  	echo indent: yes >> $(OUTDIR)tidy.conf
  	echo hide-endtags: no >> $(OUTDIR)tidy.conf
  	echo uppercase-tags: yes >> $(OUTDIR)tidy.conf
  	echo logical-emphasis: yes >> $(OUTDIR)tidy.conf
  	echo drop-font-tags: yes >> $(OUTDIR)tidy.conf
  	echo tidy-mark: no >> $(OUTDIR)tidy.conf
  	echo numeric-entities: yes >> $(OUTDIR)tidy.conf
  
  	bash stylesheets/goTidy $(OUTDIR)
  	rm $(OUTDIR)tidy.conf
  	rm $(OUTDIR)stylesheets/alfs-chunked.xsl
  	mv $(OUTDIR) nALFS-HACKERS-GUIDE
  
  	tar -cjvf nALFS-HACKERS-GUIDE-CVS-CHUNKS-html.tar.bz2 nALFS-HACKERS-GUIDE/*
  
  nochunks-html: common
  	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
  	  stylesheets/alfs-onechunk.xsl \
  	  > $(OUTDIR)alfs-onechunk.xsl
  
  	xsltproc --nonet -stringparam base.dir $(OUTDIR) \
  	  $(OUTDIR)alfs-onechunk.xsl \
  	  index.xml
  
  	echo indent-spaces: 2 > $(OUTDIR)tidy.conf
  	echo wrap: 78 >> $(OUTDIR)tidy.conf
  	echo tab-size: 8 >> $(OUTDIR)tidy.conf
  	echo input-encoding: latin1 >> $(OUTDIR)tidy.conf
  	echo output-encoding: latin1 >> $(OUTDIR)tidy.conf
  	echo newline: CRLF >> $(OUTDIR)tidy.conf
  	echo write-back: yes >> $(OUTDIR)tidy.conf
  	echo markup: yes >> $(OUTDIR)tidy.conf
  	echo show-warnings: no >> $(OUTDIR)tidy.conf
  	echo quiet: yes >> $(OUTDIR)tidy.conf
  	echo indent: yes >> $(OUTDIR)tidy.conf
  	echo hide-endtags: no >> $(OUTDIR)tidy.conf
  	echo uppercase-tags: yes >> $(OUTDIR)tidy.conf
  	echo logical-emphasis: yes >> $(OUTDIR)tidy.conf
  	echo drop-font-tags: yes >> $(OUTDIR)tidy.conf
  	echo tidy-mark: no >> $(OUTDIR)tidy.conf
  	echo numeric-entities: yes >> $(OUTDIR)tidy.conf
  
  	bash stylesheets/goTidy $(OUTDIR)
  	rm $(OUTDIR)tidy.conf
  	rm $(OUTDIR)alfs-onechunk.xsl
  	mv $(OUTDIR)index.html nALFS-HACKERS-GUIDE-CVS-NOCHUNKS.html
  
  flat-text: nochunks-html
  	lynx -dump nALFS-HACKERS-GUIDE-CVS-NOCHUNKS.html > nALFS-HACKERS-GUIDE-CVS.txt
  
  .PHONY: clean dist-clean common chunks-html nochunks-html flat-text
  
  
  



More information about the alfs-log mailing list