From f6065b4995fe9993a7bfd6ffabd42c1859f033cd Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 25 Jan 2023 09:51:44 +0800 Subject: [PATCH] Revert "Makefile: fix build-env generation" This reverts commit bb0d80a8d33701c499e012021cba8bcf54b71964. --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 804d194fa9..5841d1f58f 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ -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 +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