From: nbd Date: Thu, 20 Aug 2009 15:48:41 +0000 (+0000) Subject: merge the control file and the .ipk file targets into one to prevent them from going... X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=6a26e8186b1cc0e6e650f762a08475d944b1288d merge the control file and the .ipk file targets into one to prevent them from going out of sync git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17332 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 245e29fa5..904bbd75a 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -57,7 +57,14 @@ ifeq ($(DUMP),) $(eval $(call BuildIPKGVariable,$(1),postinst)) $(eval $(call BuildIPKGVariable,$(1),prerm)) $(eval $(call BuildIPKGVariable,$(1),postrm)) - $$(IDIR_$(1))/CONTROL/control: $(STAMP_BUILT) + + $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(STAMP_BUILT) + mkdir -p $(STAGING_DIR_ROOT)/stamp + $(call Package/$(1)/install,$(STAGING_DIR_ROOT)) + $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)) + touch $$@ + + $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT) @rm -f $(PACKAGE_DIR)/$(1)_* rm -rf $$(IDIR_$(1)) mkdir -p $$(IDIR_$(1))/CONTROL @@ -82,16 +89,7 @@ ifeq ($(DUMP),) (cd $$(IDIR_$(1))/CONTROL; \ $($(1)_COMMANDS) \ ) - - $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(STAMP_BUILT) - mkdir -p $(STAGING_DIR_ROOT)/stamp - $(call Package/$(1)/install,$(STAGING_DIR_ROOT)) - $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)) - touch $$@ - - $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT) $$(IDIR_$(1))/CONTROL/control $(call Package/$(1)/install,$$(IDIR_$(1))) - mkdir -p $$(IDIR_$(1))/CONTROL mkdir -p $(PACKAGE_DIR) -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' | $(XARGS) rm -rf $(RSTRIP) $$(IDIR_$(1))