only build linux-atm if it's actually selected
authorFelix Fietkau <nbd@openwrt.org>
Sat, 22 Sep 2007 23:40:41 +0000 (23:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 22 Sep 2007 23:40:41 +0000 (23:40 +0000)
SVN-Revision: 8968

package/linux-atm/Makefile

index ffac08b251548dda8b87408f041c31049b711feb..d86709bd2620afe2b77b4f310ff64d097d3e7b91 100644 (file)
@@ -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