From: Luka Perkov Date: Wed, 18 Jul 2012 23:27:50 +0000 (+0000) Subject: [packages] vim: fix building if only xxd is selected X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=2b1497f63a38cbb21b7bdb09471e2d5bcb0b0310 [packages] vim: fix building if only xxd is selected SVN-Revision: 32776 --- diff --git a/utils/vim/Makefile b/utils/vim/Makefile index 277fd30b0d..743f94f7d0 100644 --- a/utils/vim/Makefile +++ b/utils/vim/Makefile @@ -136,6 +136,13 @@ define Build/Compile/vim-full endef endif +ifneq ($(CONFIG_PACKAGE_xxd),) +define Build/Compile/xxd + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" all +endef +endif + define Build/Compile/vim-runtime $(MAKE) -C $(PKG_BUILD_DIR)/src DESTDIR="$(PKG_INSTALL_DIR)" installrtbase (cd $(PKG_INSTALL_DIR) && tar -cf $(PKG_BUILD_DIR)/docs.tar ./usr/share/vim/vim$(VIMVER)/doc) @@ -147,6 +154,7 @@ define Build/Compile $(call Build/Compile/vim) $(call Build/Compile/vim-full) $(call Build/Compile/vim-runtime) +$(call Build/Compile/xxd) endef define Package/vim/install @@ -156,7 +164,6 @@ define Package/vim/install $(INSTALL_CONF) ./files/vimrc $(1)/usr/share/vim/ endef - define Package/vim-full/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/vim_normal $(1)/usr/bin/vim