Преглед на файлове

The attached patch replaces $(1) install by $(if $(1), $(1), install) in the definition, in order to be able to specify an install rule, which is not always called install (example: trunk/package/ncurses/Makefile has rules called install.libs and install.data).

Then its possible to do this in ncurses Makefile:

define Build/Install
       $(call Build/Install/Default, install.libs install.data)
endef

This patch does not affect anything else, as if no parameter is given,
it will use install as before.

-Raphael

SVN-Revision: 19996
Travis Kemen преди 16 години
родител
ревизия
e09067b221
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      include/package-defaults.mk

+ 1 - 1
include/package-defaults.mk

@@ -122,7 +122,7 @@ define Build/Install/Default
 	$(MAKE_VARS) \
 	$(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
 		$(MAKE_INSTALL_FLAGS) \
-		$(1) install;
+		$(if $(1), $(1), install);
 endef
 
 define Build/Dist/Default