Changeset f756851


Ignore:
Timestamp:
11/09/2021 08:11:58 PM (3 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
2b3edd2
Parents:
e25788e
Message:

BLFS tools: do not needlessly validate book

With the current Makefile, git-version.sh is run unconditionally,
so that the bok is validated each time, even if there is no
text change. Change this to only validate if there is a text change
(the previous behavior), and run git-version.sh just before validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/Makefile

    re25788e rf756851  
    148148$(LFS_FULL): FORCE
    149149endif
    150 $(LFS_FULL): $(LFS_XML) $(LFS_XML)/general.ent $(ALLXMLLFS) $(ALLXSLLFS) lfs-version
     150$(LFS_FULL): $(LFS_XML) $(LFS_XML)/general.ent $(ALLXMLLFS) $(ALLXSLLFS)
     151        $(Q)cd $(LFS_XML) && if [ -x git-version.sh ] ; then \
     152             echo "Processing LFS version..."; \
     153             ./git-version.sh $(REV); \
     154        fi
    151155        @echo "Processing LFS bootscripts..."
    152156        $(Q)cd $(LFS_XML) && bash process-scripts.sh
     
    165169        $(Q)echo $(REV) > $(REVFILE)
    166170
    167 $(BLFS_FULL): $(BLFS_XML) $(BLFS_XML)/general.ent $(ALLXML) $(ALLXSL) version
     171$(BLFS_FULL): $(BLFS_XML) $(BLFS_XML)/general.ent $(ALLXML) $(ALLXSL)
     172        $(Q)cd $(BLFS_XML) && if [ -x git-version.sh ] ; then \
     173             echo "Processing BLFS version..."; \
     174             ./git-version.sh $(REV); \
     175        fi
    168176        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    169177        @echo "Adjusting BLFS for revision $(REV)..."
     
    209217        fi
    210218
    211 # Generate BLFS version from git:
    212 version:
    213         $(Q)cd $(BLFS_XML) && if [ -x git-version.sh ] ; then \
    214              ./git-version.sh $(REV); \
    215         fi
    216 
    217 lfs-version:
    218         $(Q)cd $(LFS_XML) && if [ -x git-version.sh ] ; then \
    219              ./git-version.sh $(REV); \
    220         fi
    221 
    222219# Clean up
    223220
Note: See TracChangeset for help on using the changeset viewer.