All pastes #111834 Raw Edit

Untitled

public text v1 · immutable
·published 2006-08-02 13:58 UTC
rendered paste body
Index: include/package.mk
===================================================================
--- include/package.mk  (revision 4398)
+++ include/package.mk  (working copy)
@@ -18,10 +18,6 @@
       ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),$(PKG_BUILD_DIR))
         $(PKG_BUILD_DIR)/.prepared: package-clean
       endif
-
-      ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg -x ipkg-install $(IPKG_$(1)) $(PKG_BUILD_DIR) | tee /tmp/check_$(1)),$(IPKG_$(1)))
-        $(PKG_BUILD_DIR)/.built: package-rebuild
-      endif
     endif
   endif

@@ -123,6 +119,11 @@

     ifneq ($(CONFIG_PACKAGE_$(1)),)
       compile-targets: $$(IPKG_$(1))
+      ifeq ($(CONFIG_AUTOREBUILD),y)
+        ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg -x ipkg-install $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1)))
+          $(PKG_BUILD_DIR)/.built: package-rebuild
+        endif
+      endif
     endif
   endif