X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/437d3489a8df7eae517289a221173459eb2d7be2..87dd6a1b19742511111f64151cb3bc327dd9bcd7:/package/libnids/Makefile?ds=inline diff --git a/package/libnids/Makefile b/package/libnids/Makefile index 8cb773e3e..c7e271e5e 100644 --- a/package/libnids/Makefile +++ b/package/libnids/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/package/rules.mk $(eval $(call PKG_template,LIBNIDS,libnids,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) -$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared +$(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ @@ -51,7 +51,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared ); touch $@ -$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured +$(PKG_BUILD_DIR)/.built: rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ @@ -60,17 +60,17 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured all install touch $@ -$(IPKG_LIBNIDS): $(STAGING_DIR)/usr/lib/libnids.so +$(IPKG_LIBNIDS): install -m0755 -d $(IDIR_LIBNIDS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnids.so.* $(IDIR_LIBNIDS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.so.* $(IDIR_LIBNIDS)/usr/lib/ $(RSTRIP) $(IDIR_LIBNIDS) $(IPKG_BUILD) $(IDIR_LIBNIDS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libnids.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/nids.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/nids.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libnids.so install-dev: $(STAGING_DIR)/usr/lib/libnids.so @@ -79,5 +79,5 @@ uninstall-dev: rm -rf $(STAGING_DIR)/usr/include/nids.h rm -rf $(STAGING_DIR)/usr/lib/libnids.{a,so*} -compile: install-dev -clean: uninstall-dev +compile-targets: install-dev +clean-targets: uninstall-dev