[packages] vim: fix building if only xxd is selected
authorLuka Perkov <luka@openwrt.org>
Wed, 18 Jul 2012 23:27:50 +0000 (23:27 +0000)
committerLuka Perkov <luka@openwrt.org>
Wed, 18 Jul 2012 23:27:50 +0000 (23:27 +0000)
SVN-Revision: 32776

utils/vim/Makefile

index 277fd30b0d4e352fb7c64c135fe2c658c9c46ca8..743f94f7d0d5dc4ec2e97104be1a19bde9eb2c28 100644 (file)
@@ -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