From 75bf5f3c0a9e05f3d0638d868cc8bd675797eabb Mon Sep 17 00:00:00 2001 From: daijro Date: Tue, 30 Jul 2024 21:35:04 -0500 Subject: [PATCH] Makefile: Add _READY flag to avoid building unpatched src --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e84264b..e352a5e 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ dir: fi make clean python3 scripts/patch.py $(version) $(release) + touch $(cf_source_dir)/_READY mozbootstrap: cd $(cf_source_dir) && MOZBUILD_STATE_PATH=$$HOME/.mozbuild ./mach --no-interactive bootstrap --application-choice=browser @@ -57,7 +58,7 @@ distclean: clean rm -rf $(cf_source_dir) build: - @if [ ! -d $(cf_source_dir) ]; then \ + @if [ ! -f $(cf_source_dir)/_READY ]; then \ make dir; \ fi cd $(cf_source_dir) && ./mach build