fix .built target
authorMike Baker <mbm@openwrt.org>
Sun, 14 May 2006 10:24:06 +0000 (10:24 +0000)
committerMike Baker <mbm@openwrt.org>
Sun, 14 May 2006 10:24:06 +0000 (10:24 +0000)
SVN-Revision: 3776

openwrt/package/rules.mk

index d25b487a76b1b3a43451819783a88be21eafd78d..2d379006c38ff6d43e02e97050c9e6a1f0825822 100644 (file)
@@ -5,12 +5,11 @@ else
 endif
 
 define Build/DefaultTargets
-
   ifeq ($(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),.)
     $(PKG_BUILD_DIR)/.prepared: package-clean
   endif
 
-  ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1)))
+  ifneq ($(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1)))
     $(PKG_BUILD_DIR)/.built: package-rebuild
   endif
 
@@ -145,9 +144,7 @@ define BuildPackage
 
   clean: $(1)-clean
 
-  ifneq ($(__DEFAULT_TARGETS),1)
-    $(eval $(call Build/DefaultTargets,$(1)))
-  endif
+  $$(eval $$(call Build/DefaultTargets,$(1)))
 
 endef