Makefile: fix build-env generation

Not sure why the previous commit with ovbious errors "seems to work"...
This commit is contained in:
Xi Ruoyao 2023-01-23 19:56:57 +08:00
parent 41275f9aac
commit bb0d80a8d3
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -299,11 +299,11 @@ version.ent: general.ent packages.ent gnome.ent $(ALLXML) $(ALLXSL) build-env
# general/prog/python-modules.xml
# $(Q)mv temp.xml $@
.PHONY: update-build-env
update-build-env:
$(Q)echo REV=$(REV) > $@.new
$(Q)echo BASEDIR=$(BASEDIR) >> $@.new
$(Q)diff $@.new $@ 2>/dev/null >/dev/null || mv $@.new $@
$(Q)rm -f $@.new
build-env: update-build-env
$(Q)echo REV=$(REV) > build-env.new
$(Q)echo BASEDIR=$(BASEDIR) >> build-env.new
$(Q)diff build-env{.new,} 2>/dev/null >/dev/null || mv build-env{.new,}
$(Q)rm -f build-env.new
.PHONY: update-build-env
update-build-env: ; @true