Bug 1292069 - Remove the cleansrcdir target. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 04 Aug 2016 17:34:05 +0900
changeset 351682 8feacca30626875bcc86c49c9dd2b69cee281d98
parent 351681 21a54c2faea5d477678a9698c124ea712f2a133c
child 351683 442051d3d83ab45c9a3a50a6c26458d42b3bab0a
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1292069
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1292069 - Remove the cleansrcdir target. r=gps It has not been useful since we removed the possibility to build in the source directory.
build/autoconf/clean-config.sh
client.mk
deleted file mode 100755
--- a/build/autoconf/clean-config.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-# clean-config.sh - Removes all files generated by mozilla configure.
-#    Only removes files from the topsrcdir. To clean up an objdir,
-#    simply remove the directory and start over.
-#
-# Usage:
-#    1. cd <topsrcdir>
-#    2. build/autoconf/clean-config.sh
-#
-# Send comments, improvements, bugs to slamm@netscape.com
-
-topsrcdir=`cd \`dirname $0\`/../..; pwd`
-
-if [ ! -f configure.in ]; then
-  echo "clean-config.sh only cleans the source tree. To run," 2>&1
-  echo "  cd $topsrcdir; build/autoconf/clean-config.sh" 2>&1
-  echo "  (To clean a separate objdir, simple remove the directory.)" 2>&1
-  exit 1
-fi
-
-rm -fr \
-    config-defs.h \
-    config.cache \
-    config.log \
-    config.status \
-    $NULL
--- a/client.mk
+++ b/client.mk
@@ -459,42 +459,29 @@ else
 # this point when building multiple projects.  Only MOZ_OBJDIR is available.
 	set -e; \
 	for mkfile in $(MOZ_POSTFLIGHT_ALL); do \
 	  $(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS='$(MOZ_BUILD_PROJECTS)'; \
 	done
 endif
 endif
 
-cleansrcdir:
-	@cd $(TOPSRCDIR); \
-	if [ -f Makefile ]; then \
-	  $(MAKE) distclean ; \
-	else \
-	  echo 'Removing object files from srcdir...'; \
-	  rm -fr `find . -type d \( -name .deps -print -o -name CVS \
-	          -o -exec test ! -d {}/CVS \; \) -prune \
-	          -o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \
-	   build/autoconf/clean-config.sh; \
-	fi;
-
 echo-variable-%:
 	@echo $($*)
 
 # This makefile doesn't support parallel execution. It does pass
 # MOZ_MAKE_FLAGS to sub-make processes, so they will correctly execute
 # in parallel.
 .NOTPARALLEL:
 
 .PHONY: checkout \
     real_checkout \
     realbuild \
     build \
     profiledbuild \
-    cleansrcdir \
     pull_all \
     build_all \
     clobber \
     clobber_all \
     pull_and_build_all \
     everything \
     configure \
     preflight_all \