Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r28909b72 r869909a  
    22# By Tushar Teredesai <tushar@linuxfromscratch.org>
    33# 2004-01-31
     4# $LastChangedBy$
     5# $Date$
    46
    57# Adjust these to suit your installation
     
    5052blfs: html wget-list
    5153
    52 help:
    53         @echo ""
    54         @echo "make <parameters> <targets>"
    55         @echo ""
    56         @echo "Parameters:"
    57         @echo "  REV=<rev>            Build variation of book"
    58         @echo "                       Valid values for REV are:"
    59         @echo "                       * sysv    - Build book for SysV"
    60         @echo "                       * systemd - Build book for systemd"
    61         @echo "                       Defaults to 'sysv'"
    62         @echo ""
    63         @echo "  BASEDIR=<dir>        Put the output in directory <dir>."
    64         @echo "                       Defaults to"
    65         @echo "                       'HOME/public_html/blfs-book' if REV=sysv (or unset)"
    66         @echo "                       or to"
    67         @echo "                       'HOME/public_html/blfs-book-systemd' if REV=systemd"
    68         @echo ""
    69         @echo "  V=<val>              If <val> is a non-empty value, all"
    70         @echo "                       steps to produce the output is shown."
    71         @echo "                       Default is unset."
    72         @echo ""
    73         @echo "Targets:"
    74         @echo "  help                 Show this help text."
    75         @echo ""
    76         @echo "  blfs                 Builds targets 'html' and 'wget-list'."
    77         @echo ""
    78         @echo "  html                 Builds the HTML pages of the book."
    79         @echo ""
    80         @echo "  wget-list            Produces a list of all packages to download."
    81         @echo "                       Output is BASEDIR/wget-list"
    82         @echo ""
    83         @echo "  nochunks             Builds the book as a one-pager. The output"
    84         @echo "                       is a large single HTML page containing the"
    85         @echo "                       whole book."
    86         @echo ""
    87         @echo "                       Parameter NOCHUNKS_OUTPUT=<filename> controls"
    88         @echo "                       the name of the HTML file."
    89         @echo ""
    90         @echo "  validate             Runs validation checks on the XML files."
    91         @echo ""
    92         @echo "  test-links           Runs validation checks on URLs in the book."
    93         @echo "                       Produces a file named BASEDIR/bad_urls containing"
    94         @echo "                       URLS which are invalid and a BASEDIR/good_urls"
    95         @echo "                       containing all valid URLs."
    96         @echo ""
    97 
    9854all: blfs nochunks
    9955world: all blfs-patch-list dump-commands test-links
    10056
    10157html: $(BASEDIR)/index.html
    102 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
     58$(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML)
    10359        @echo "Generating chunked XHTML files..."
    10460        $(Q)xsltproc --nonet                                    \
     
    11571
    11672        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    117         $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
    11873
    11974        $(Q)if [ ! -e $(BASEDIR)/images ]; then \
     
    13085      true;                                                       \
    13186      bash obfuscate.sh $$filename;                               \
    132       sed -i -e "1,20s@text/html@application/xhtml+xml@g" $$filename; \
     87      sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
    13388   done;
    13489
    13590nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    136 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
     91$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML)
    13792        @echo "Generating non-chunked XHTML file..."
    13893        $(Q)xsltproc --nonet                                \
     
    145100        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
    146101        $(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    147         $(Q)sed -i -e "1,20s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     102        $(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    148103
    149104tmpdir: $(RENDERTMP)
     
    157112
    158113validate: $(RENDERTMP)/$(BLFSFULL)
    159 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version
     114$(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL)
    160115        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    161116
     
    176131
    177132profile-html: $(RENDERTMP)/$(BLFSHTML)
    178 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version
     133$(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL)
    179134        @echo "Generating profiled XML for XHTML..."
    180135        $(Q)xsltproc --nonet                              \
     
    189144          blfs-patches.sh > blfs-patch-list
    190145
    191 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version
     146blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL)
    192147        @echo "Generating blfs patch script..."
    193148        $(Q)xsltproc --nonet                     \
     
    197152
    198153wget-list: $(BASEDIR)/wget-list
    199 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version
     154$(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL)
    200155        @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..."
    201156        $(Q)mkdir -p $(BASEDIR)
     
    206161
    207162test-links: $(BASEDIR)/test-links
    208 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version
     163$(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL)
    209164        @echo "Generating test-links file..."
    210165        $(Q)mkdir -p $(BASEDIR)
     
    258213
    259214dump-commands: $(DUMPDIR)
    260 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version
     215$(DUMPDIR): $(RENDERTMP)/$(BLFSFULL)
    261216        @echo "Dumping book commands..."
    262217        $(Q)xsltproc --output $(DUMPDIR)/          \
     
    267222.PHONY: blfs all world html nochunks tmpdir clean  \
    268223   validate profile-html blfs-patch-list wget-list test-links \
    269    dump-commands  bootscripts systemd-units version
    270 
    271 version:
    272         $(Q)./git-version.sh
     224   dump-commands  bootscripts systemd-units
     225
     226
Note: See TracChangeset for help on using the changeset viewer.