diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-02-25 11:49:40 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-02-25 11:49:40 -0800 |
commit | 862677be200fce120af136a392a780eb4816fa64 (patch) | |
tree | 90d951e77aea3bcc6480febf0005d4d6fe9e502e | |
parent | ca3098fd635c3368ad161b03e44e2e6a742b314e (diff) | |
download | txr-862677be200fce120af136a392a780eb4816fa64.tar.gz txr-862677be200fce120af136a392a780eb4816fa64.tar.bz2 txr-862677be200fce120af136a392a780eb4816fa64.zip |
build: don't create .build_id file for non-users of build_id.
* Makefile: put the current build_id into the .build_id
file only if it is nonblank. If it is blank, then delete
the file if it exists. This handles the case when the
build_id user removes the build_id. A rebuild of txr.o is
forced one last time, and the .build_id is removed.
Users who don't know about build_id or don't use it will
no longer see a blank .build_id file being created.
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -323,7 +323,11 @@ old_build_id=$(shell cat .build_id 2> /dev/null) ifneq ($(build_id_exp),$(old_build_id)) $(shell rm -f $(call EACH_CONF,txr.o txr-win.o)) endif +ifneq ($(build_id_exp),) $(shell printf "%s" "$(build_id_exp)" > .build_id) +else +$(shell rm -f .build_id) +endif ifneq ($(build_id_exp),) $(call EACH_CONF,txr.o txr-win.o): TXR_CFLAGS += -DTXR_BUILD_ID=\"$(build_id_exp)\" |