Changeset 17c9da8 for Makefile


Ignore:
Timestamp:
04/15/2021 09:31:50 AM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
84de88e
Parents:
1adab68
Message:

generate version info from git

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r1adab68 r17c9da8  
    5656
    5757html: $(BASEDIR)/index.html
    58 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML)
     58$(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
    5959        @echo "Generating chunked XHTML files..."
    6060        $(Q)xsltproc --nonet                                    \
     
    8989
    9090nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    91 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML)
     91$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
    9292        @echo "Generating non-chunked XHTML file..."
    9393        $(Q)xsltproc --nonet                                \
     
    112112
    113113validate: $(RENDERTMP)/$(BLFSFULL)
    114 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL)
     114$(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version
    115115        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    116116
     
    131131
    132132profile-html: $(RENDERTMP)/$(BLFSHTML)
    133 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL)
     133$(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version
    134134        @echo "Generating profiled XML for XHTML..."
    135135        $(Q)xsltproc --nonet                              \
     
    144144          blfs-patches.sh > blfs-patch-list
    145145
    146 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL)
     146blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version
    147147        @echo "Generating blfs patch script..."
    148148        $(Q)xsltproc --nonet                     \
     
    152152
    153153wget-list: $(BASEDIR)/wget-list
    154 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL)
     154$(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version
    155155        @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..."
    156156        $(Q)mkdir -p $(BASEDIR)
     
    161161
    162162test-links: $(BASEDIR)/test-links
    163 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL)
     163$(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version
    164164        @echo "Generating test-links file..."
    165165        $(Q)mkdir -p $(BASEDIR)
     
    213213
    214214dump-commands: $(DUMPDIR)
    215 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL)
     215$(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version
    216216        @echo "Dumping book commands..."
    217217        $(Q)xsltproc --output $(DUMPDIR)/          \
     
    222222.PHONY: blfs all world html nochunks tmpdir clean  \
    223223   validate profile-html blfs-patch-list wget-list test-links \
    224    dump-commands  bootscripts systemd-units
    225 
    226 
     224   dump-commands  bootscripts systemd-units version
     225
     226version:
     227        $(Q)./git-version.sh
Note: See TracChangeset for help on using the changeset viewer.