Makefile: Add _READY flag to avoid building unpatched src

This commit is contained in:
daijro 2024-07-30 21:35:04 -05:00
parent b48e994bc1
commit 75bf5f3c0a

View file

@ -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