From: nbd Date: Sat, 22 Sep 2007 23:40:41 +0000 (+0000) Subject: only build linux-atm if it's actually selected X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/1f454ba35a07eca3e8725d62abb48c3494ea730e?ds=sidebyside;hp=a4ae1d5559fc7b37dd4a865ca6a0043ab5e7d531 only build linux-atm if it's actually selected git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8968 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/linux-atm/Makefile b/package/linux-atm/Makefile index ffac08b25..d86709bd2 100644 --- a/package/linux-atm/Makefile +++ b/package/linux-atm/Makefile @@ -53,19 +53,21 @@ define Build/Compile all install endef -define Build/InstallDev +ifneq ($(CONFIG_PACKAGE_linux-atm),) + define Build/InstallDev mkdir -p $(STAGING_DIR)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \ $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \ $(STAGING_DIR)/usr/lib/ -endef + endef -define Build/UninstallDev + define Build/UninstallDev rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \ $(STAGING_DIR)/usr/lib/libatm.{a,so*} -endef + endef +endif define Package/linux-atm/install $(INSTALL_DIR) $(1)/usr/lib