Changeset 51bec49


Ignore:
Timestamp:
01/23/2023 09:02:19 AM (15 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
41275f9a
Parents:
9209f7c
Message:

Makefile: don't always make version.ent

If nothing has changed in the book, there is no need to regenerate
version.ent, blfs-full.xml, etc... So only make version.ent
.PHONY if REV has changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9209f7c r51bec49  
    1414#       $(filter-out $(PYHOSTED), \
    1515#       $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml)))
    16 #ALLXSL := $(filter-out $(RENDERTMP)/%, \
    17 #       $(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl))
     16ALLXML := $(filter-out $(RENDERTMP)/%, \
     17            $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml))
     18ALLXSL := $(filter-out $(RENDERTMP)/%, \
     19            $(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl))
    1820
    1921ifdef V
     
    3234  endif
    3335endif
     36
     37# Let's get the previous REV: it'll be used to see if we should
     38# rebuild version.ent
     39PREVREV != if [ -f conditional.ent ]; then \
     40              gawk '/INCLUDE/{ print $$3 }' conditional.ent; \
     41           fi
    3442
    3543ifeq ($(REV), sysv)
     
    5058endif
    5159
    52 
    5360blfs: html wget-list
    5461
     
    273280        test-links dump-commands  bootscripts systemd-units
    274281
    275 .PHONY: version.ent
    276 version.ent: general.ent packages.ent $(ALLXML) $(ALLXSL)
     282# make version.ent unconditionally if we have changed REV
     283ifneq ($(REV), $(PREVREV))
     284   .PHONY: version.ent
     285endif
     286
     287version.ent: general.ent packages.ent gnome.ent $(ALLXML) $(ALLXSL)
    277288        $(Q)./git-version.sh $(REV)
    278289
Note: See TracChangeset for help on using the changeset viewer.