Changeset 05d5b11


Ignore:
Timestamp:
01/25/2023 01:51:58 AM (15 months ago)
Author:
Xi Ruoyao <xry111@…>
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:
4653242
Parents:
f6065b49
Message:

Revert "Makefile: use a "by-the-book" way to detect build environment change"

This reverts commit 41275f9aac1da83ff3aef848eafa2a2a97257565.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rf6065b49 r05d5b11  
    44xxx
    55*.swp
    6 build-env
  • Makefile

    rf6065b49 r05d5b11  
    3434  endif
    3535endif
     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
    3642
    3743ifeq ($(REV), sysv)
     
    274280        test-links dump-commands  bootscripts systemd-units
    275281
    276 version.ent: general.ent packages.ent gnome.ent $(ALLXML) $(ALLXSL) build-env
     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
     
    299310#                general/prog/python-modules.xml
    300311#       $(Q)mv temp.xml $@
    301 
    302 .PHONY: update-build-env
    303 update-build-env:
    304         $(Q)echo REV=$(REV) > $@.new
    305         $(Q)echo BASEDIR=$(BASEDIR) >> $@.new
    306         $(Q)diff $@.new $@ 2>/dev/null >/dev/null || mv $@.new $@
    307         $(Q)rm -f $@.new
    308 
    309 build-env: update-build-env
Note: See TracChangeset for help on using the changeset viewer.