X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/680b9628750e2f234193da3c7e9a2ee9a8ef3ae7..6290f02fd28c21c7a65adeeaa05e7fd43f4cbf8d:/include/package-defaults.mk diff --git a/include/package-defaults.mk b/include/package-defaults.mk index fd50cb4d8..c086cc21c 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -102,6 +102,10 @@ MAKE_FLAGS = \ CROSS="$(TARGET_CROSS)" \ ARCH="$(ARCH)" +MAKE_INSTALL_FLAGS = \ + $(MAKE_FLAGS) \ + DESTDIR="$(PKG_INSTALL_DIR)" + MAKE_PATH = . define Build/Compile/Default @@ -110,3 +114,10 @@ define Build/Compile/Default $(MAKE_FLAGS) \ $(1); endef + +define Build/Install/Default + $(MAKE_VARS) \ + $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ + $(MAKE_INSTALL_FLAGS) \ + $(1) install; +endef