summaryrefslogtreecommitdiff
path: root/client.mk
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-01-25 13:21:05 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-01-25 13:21:05 -0500
commitc653391e905b69799f083197fa847bb7e20d2d13 (patch)
treef2d2cc2ff3ed1bfcf6c27eac54f790988f6fe03d /client.mk
parentb4192110b9a5909752250bb61d336185ab1630ef (diff)
downloadbasilisk-c653391e905b69799f083197fa847bb7e20d2d13.tar.gz
Restore basic CLOBBER detection in the comm build system
Diffstat (limited to 'client.mk')
-rw-r--r--client.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/client.mk b/client.mk
index cb6ec1d..8f61754 100644
--- a/client.mk
+++ b/client.mk
@@ -112,6 +112,9 @@ MOZCONFIG_OUT_LINES := $(subst $(CR), ,$(subst $(NULL) $(NULL),||,$(MOZCONFIG_CO
START_COMMENT = \#
MOZCONFIG_OUT_FILTERED := $(filter-out $(START_COMMENT)%,$(MOZCONFIG_OUT_LINES))
+ifdef AUTOCLOBBER
+export AUTOCLOBBER=1
+endif
ifdef MOZ_PGO
export MOZ_PGO
endif
@@ -336,6 +339,7 @@ CONFIG_STATUS_DEPS := \
$(wildcard $(TOPSRCDIR)/platform/config/milestone.txt) \
$(wildcard $(TOPSRCDIR)/platform/ldap/sdks/c-sdk/configure) \
$(wildcard $(addsuffix confvars.sh,$(wildcard $(TOPSRCDIR)/*/))) \
+ $(TOPSRCDIR)/platform/CLOBBER \
$(NULL)
CONFIGURE_ENV_ARGS += \
@@ -351,6 +355,10 @@ else
CONFIGURE = $(TOPSRCDIR)/configure
endif
+$(OBJDIR)/CLOBBER: $(TOPSRCDIR)/CLOBBER
+ $(PYTHON) $(TOPSRCDIR)/platform/config/pythonpath.py -I $(TOPSRCDIR)/platform/testing/mozbase/mozfile \
+ $(TOPSRCDIR)/platform/python/mozbuild/mozbuild/controller/clobber.py $(TOPSRCDIR)/platform $(OBJDIR)
+
configure-files: $(CONFIGURES)
configure-preqs = \