Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/Makefile

    rda28cc3 rd63b7ee  
    1 TOP             := $(PWD)
     1TOP             := $(shell pwd)
    22RENDERDIR       := $(TOP)/../render
    33
     
    5454        @echo "Rendering the top-level index..."
    5555        $(Q)xsltproc --nonet --output $(HTMLDIR)/index.html \
    56           $(PWD)/stylesheets/top-index.xsl \
    57           $(PWD)/index.xml
     56          $(TOP)/stylesheets/top-index.xsl \
     57          $(TOP)/index.xml
    5858        @$(MAKE) --no-print-directory tidy-f TIDY_FILE=$(HTMLDIR)/index.html
    5959
     
    6767          --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \
    6868          -o $(VALIDATEDIR)/$(arch)-full.xml \
    69           $(PWD)/$(arch)-index.xml
     69          $(TOP)/$(arch)-index.xml
    7070
    7171ARCHS_P_XML := $(ARCHS:%=%-profiled-xml)
     
    7878        $(Q)xsltproc --nonet --stringparam profile.condition html \
    7979          --output $(PROFILEDIR)/$(arch)-html.xml \
    80           $(PWD)/stylesheets/lfs-xsl/profile.xsl \
     80          $(TOP)/stylesheets/lfs-xsl/profile.xsl \
    8181          $(VALIDATEDIR)/$(arch)-full.xml
    8282
     
    9393          -stringparam rootid "$(ROOT_ID)" \
    9494          -stringparam base.dir $(HTMLDIR)/$(arch)/ \
    95           $(PWD)/stylesheets/clfs-chunked.xsl \
     95          $(TOP)/stylesheets/clfs-chunked.xsl \
    9696          $(PROFILEDIR)/$(arch)-html.xml
    9797
    9898        @echo "Copying CSS code and images for $(arch)..."
    9999        $(Q)mkdir -p $(HTMLDIR)/$(arch)/stylesheets
    100         $(Q)cp $(PWD)/stylesheets/lfs-xsl/*.css $(HTMLDIR)/$(arch)/stylesheets
     100        $(Q)cp $(TOP)/stylesheets/lfs-xsl/*.css $(HTMLDIR)/$(arch)/stylesheets
    101101        $(Q)sed -i -e "s@../stylesheets@stylesheets@g" $(HTMLDIR)/$(arch)/*.html
    102102        $(Q)mkdir -p $(HTMLDIR)/$(arch)/images
    103         $(Q)cp $(PWD)/images/*.png $(HTMLDIR)/$(arch)/images
     103        $(Q)cp $(TOP)/images/*.png $(HTMLDIR)/$(arch)/images
    104104        $(Q)sed -i -e "s@../images@images@g" $(HTMLDIR)/$(arch)/*.html
    105105
     
    117117        $(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \
    118118          --output $(NOCHUNKDIR)/CLFS-$(arch).html \
    119           $(PWD)/stylesheets/clfs-nochunks.xsl \
     119          $(TOP)/stylesheets/clfs-nochunks.xsl \
    120120          $(PROFILEDIR)/$(arch)-html.xml
    121121
     
    133133        $(Q)xsltproc --nonet -stringparam rootid "$(ROOT_ID)" \
    134134          --output $(FODIR)/$(arch).fo \
    135           $(PWD)/stylesheets/clfs-pdf.xsl \
     135          $(TOP)/stylesheets/clfs-pdf.xsl \
    136136          $(PROFILEDIR)/$(arch)-html.xml
    137137        $(Q)sed -i -e 's/span="inherit"/span="all"/' $(FODIR)/$(arch).fo
     
    156156        $(Q)xmllint --xinclude --noout --nonet \
    157157          --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \
    158           $(PWD)/$(arch)-index.xml
     158          $(TOP)/$(arch)-index.xml
    159159
    160160ARCHS_TROUBLE := $(ARCHS:%=%-trouble)
     
    168168          --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \
    169169          -o $(TROUBLEDIR)/dump-$(arch) \
    170           $(PWD)/$(arch)-index.xml
     170          $(TOP)/$(arch)-index.xml
    171171        $(Q)xmllint --xinclude --noout --nonet \
    172172          --relaxng $(TOP)/schema/docbook/4.5/rng/docbook.rng \
     
    183183        $(Q)xsltproc --xinclude --nonet \
    184184          --output $(DUMPDIR)/$(arch)/ \
    185           $(PWD)/stylesheets/dump-commands.xsl \
    186           $(PWD)/$(arch)-index.xml
     185          $(TOP)/stylesheets/dump-commands.xsl \
     186          $(TOP)/$(arch)-index.xml
    187187
    188188ARCHS_DLLIST := $(ARCHS:%=%-dllist)
     
    195195        $(Q)xsltproc --xinclude --nonet \
    196196          --output $(DLLISTDIR)/$(arch).list \
    197           $(PWD)/stylesheets/wget.xsl \
    198           $(PWD)/$(arch)-index.xml
     197          $(TOP)/stylesheets/wget.xsl \
     198          $(TOP)/$(arch)-index.xml
    199199
    200200FG_GREEN := $(shell echo -e '\e[0;32m')
Note: See TracChangeset for help on using the changeset viewer.