Bug 1368699 - Post: Remove PURGECACHES from Make and now-unused app-rules.mk. r=gps draft
authorNick Alexander <nalexander@mozilla.com>
Fri, 19 Jan 2018 10:50:42 -0800
changeset 749609 2a5b67e723f8e1654627e6e6f26704f6a4e57706
parent 749608 e973d065cd91e965f4103ed2732858e2e7a9c546
child 749610 746bbe5c6f1555e8b729cbbbc1f8ca57110ae9ba
push id97458
push usernalexander@mozilla.com
push dateWed, 31 Jan 2018 20:06:51 +0000
reviewersgps
bugs1368699
milestone60.0a1
Bug 1368699 - Post: Remove PURGECACHES from Make and now-unused app-rules.mk. r=gps Now that writing the .purgecaches sentinel is done by |mach build|, we can remove it from Make. In addition, we can cull the now-unused app-rules.mk \o/ MozReview-Commit-ID: 6CnAqLeZwzB
browser/app-rules.mk
config/rules.mk
deleted file mode 100644
--- a/browser/app-rules.mk
+++ /dev/null
@@ -1,1 +0,0 @@
-PURGECACHES_DIRS = $(DIST)/bin/browser
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -1336,20 +1336,16 @@ endif
 endif
 
 MDDEPEND_FILES		:= $(strip $(wildcard $(addprefix $(MDDEPDIR)/,$(EXTRA_MDDEPEND_FILES))))
 
 ifneq (,$(MDDEPEND_FILES))
 -include $(MDDEPEND_FILES)
 endif
 
-#############################################################################
-
--include $(topsrcdir)/$(MOZ_BUILD_APP)/app-rules.mk
-
 ################################################################################
 # Install/copy rules
 #
 # The INSTALL_TARGETS variable contains a list of all install target
 # categories. Each category defines a list of files and executables, and an
 # install destination,
 #
 # FOO_FILES := foo bar
@@ -1568,25 +1564,16 @@ FREEZE_VARIABLES = \
 $(foreach var,$(FREEZE_VARIABLES),$(eval $(var)_FROZEN := '$($(var))'))
 
 CHECK_FROZEN_VARIABLES = $(foreach var,$(FREEZE_VARIABLES), \
   $(if $(subst $($(var)_FROZEN),,'$($(var))'),$(error Makefile variable '$(var)' changed value after including rules.mk. Was $($(var)_FROZEN), now $($(var)).)))
 
 libs export::
 	$(CHECK_FROZEN_VARIABLES)
 
-PURGECACHES_DIRS ?= $(DIST)/bin
-
-PURGECACHES_FILES = $(addsuffix /.purgecaches,$(PURGECACHES_DIRS))
-
-default all:: $(PURGECACHES_FILES)
-
-$(PURGECACHES_FILES):
-	if test -d $(@D) ; then touch $@ ; fi
-
 .DEFAULT_GOAL := $(or $(OVERRIDE_DEFAULT_GOAL),default)
 
 #############################################################################
 # Derived targets and dependencies
 
 include $(MOZILLA_DIR)/config/makefiles/autotargets.mk
 ifneq ($(NULL),$(AUTO_DEPS))
   default all libs tools export:: $(AUTO_DEPS)