From: nbd Date: Fri, 2 Jun 2006 16:17:56 +0000 (+0000) Subject: remove unused wget menuconfig option; make the package autorebuild optional (but... X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/d3b73f5c07d60bc9cd0f61e43c4be30ea98f65cb?hp=142699180ce17b25851192e27bc89658746c9c5e remove unused wget menuconfig option; make the package autorebuild optional (but enabled by default) git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3896 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/Config.in b/Config.in index 4a887cc13..740205e3e 100644 --- a/Config.in +++ b/Config.in @@ -21,10 +21,12 @@ menuconfig DEVEL menuconfig BUILDOPTS bool "Build Options" if DEVEL -config WGET - string - prompt "WGET command" if BUILDOPTS - default "wget --passive-ftp -nd" +config AUTOREBUILD + bool + prompt "Automatic rebuild of packages" if BUILDOPTS + default y + help + Automatically rebuild packages when their files change config TAR_VERBOSITY bool diff --git a/package/rules.mk b/package/rules.mk index 1fd6f2a8a..c05333b02 100644 --- a/package/rules.mk +++ b/package/rules.mk @@ -7,12 +7,16 @@ endif define Build/DefaultTargets ifeq ($(DUMP),) ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) . $(TOPDIR)/package/rules.mk),$(PKG_BUILD_DIR)) - $(PKG_BUILD_DIR)/.prepared: package-clean + ifeq ($(CONFIG_AUTOREBUILD),y) + $(PKG_BUILD_DIR)/.prepared: package-clean + endif endif ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1))) - $(PKG_BUILD_DIR)/.built: package-rebuild - endif + ifeq ($(CONFIG_AUTOREBUILD),y) + $(PKG_BUILD_DIR)/.built: package-rebuild + endif + endif endif $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)