summaryrefslogtreecommitdiff
path: root/openwrt/package/libdnet/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-09-20 07:41:52 +0000
committerNicolas Thill <nico@openwrt.org>2005-09-20 07:41:52 +0000
commitbf7dac0fb95ac0029cfd12c9a200f0192a9dbec7 (patch)
tree2ed54d2bacb9b311bf3fca9f63a1135b6527a932 /openwrt/package/libdnet/Makefile
parentc00856544d0359a52ce54e00bd09ab718259c423 (diff)
downloadmtk-20170518-bf7dac0fb95ac0029cfd12c9a200f0192a9dbec7.zip
mtk-20170518-bf7dac0fb95ac0029cfd12c9a200f0192a9dbec7.tar.gz
mtk-20170518-bf7dac0fb95ac0029cfd12c9a200f0192a9dbec7.tar.bz2
fix dnet-config (remove references to /usr/{include,lib}), only install and remove what's needed in staging_dir
SVN-Revision: 1962
Diffstat (limited to 'openwrt/package/libdnet/Makefile')
-rw-r--r--openwrt/package/libdnet/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/openwrt/package/libdnet/Makefile b/openwrt/package/libdnet/Makefile
index e47b34a..5501b6b 100644
--- a/openwrt/package/libdnet/Makefile
+++ b/openwrt/package/libdnet/Makefile
@@ -76,9 +76,10 @@ $(STAGING_DIR)/usr/lib/libdnet.so: $(PKG_BUILD_DIR)/.built
mkdir -p $(STAGING_DIR)/usr/bin
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(STAGING_DIR)/usr/bin/
mkdir -p $(STAGING_DIR)/usr/include
- cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet* $(STAGING_DIR)/usr/include/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet.h $(STAGING_DIR)/usr/include/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.* $(STAGING_DIR)/usr/lib/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(STAGING_DIR)/usr/lib/
touch $@
install-dev: $(STAGING_DIR)/usr/lib/libdnet.so
@@ -86,8 +87,9 @@ install-dev: $(STAGING_DIR)/usr/lib/libdnet.so
uninstall-dev:
rm -rf \
$(STAGING_DIR)/usr/bin/dnet-config \
- $(STAGING_DIR)/usr/include/dnet* \
- $(STAGING_DIR)/usr/lib/libdnet.* \
+ $(STAGING_DIR)/usr/include/dnet.h \
+ $(STAGING_DIR)/usr/include/dnet \
+ $(STAGING_DIR)/usr/lib/libdnet.{a,so*} \
compile: install-dev
clean: uninstall-dev