summaryrefslogtreecommitdiffstats
path: root/package/ethtool/ethtool.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-05-31 15:27:05 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2007-05-31 15:27:05 +0000
commit9f4748001940009db8589cb3fb4f07764503964d (patch)
tree66bcef6d75a01735fba106c9ede44ea1a145f6be /package/ethtool/ethtool.mk
parent958dd529d491a563b60a5485bee8094a7b095a99 (diff)
downloadbuildroot-novena-9f4748001940009db8589cb3fb4f07764503964d.tar.gz
buildroot-novena-9f4748001940009db8589cb3fb4f07764503964d.zip
Cleanup, get rid of ETHTOOL_WORKDIR, use $@
Diffstat (limited to 'package/ethtool/ethtool.mk')
-rw-r--r--package/ethtool/ethtool.mk25
1 files changed, 11 insertions, 14 deletions
diff --git a/package/ethtool/ethtool.mk b/package/ethtool/ethtool.mk
index 38a2aeae3..5214e0e97 100644
--- a/package/ethtool/ethtool.mk
+++ b/package/ethtool/ethtool.mk
@@ -7,8 +7,7 @@
ETHTOOL_VERSION=3
ETHTOOL_SOURCE=ethtool-$(ETHTOOL_VERSION).tar.gz
ETHTOOL_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gkernel/
-ETHTOOL_DIR=$(BUILD_DIR)/${shell basename $(ETHTOOL_SOURCE) .tar.gz}
-ETHTOOL_WORKDIR=$(BUILD_DIR)/ethtool-$(ETHTOOL_VERSION)
+ETHTOOL_DIR=$(BUILD_DIR)/ethtool-$(ETHTOOL_VERSION)
ETHTOOL_CAT:=$(ZCAT)
$(DL_DIR)/$(ETHTOOL_SOURCE):
@@ -16,7 +15,7 @@ $(DL_DIR)/$(ETHTOOL_SOURCE):
$(ETHTOOL_DIR)/.unpacked: $(DL_DIR)/$(ETHTOOL_SOURCE)
$(ETHTOOL_CAT) $(DL_DIR)/$(ETHTOOL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(ETHTOOL_DIR)/.unpacked
+ touch $@
$(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
(cd $(ETHTOOL_DIR); rm -rf config.cache; \
@@ -30,26 +29,24 @@ $(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
--prefix=/usr \
--sysconfdir=/etc \
);
- touch $(ETHTOOL_DIR)/.configured
+ touch $@
-$(ETHTOOL_WORKDIR)/ethtool: $(ETHTOOL_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) -C $(ETHTOOL_WORKDIR)
+$(ETHTOOL_DIR)/ethtool: $(ETHTOOL_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(ETHTOOL_DIR)
-$(ETHTOOL_WORKDIR)/.installed: $(ETHTOOL_WORKDIR)/ethtool
- cp $(ETHTOOL_WORKDIR)/ethtool $(TARGET_DIR)/usr/sbin
- touch $(ETHTOOL_WORKDIR)/.installed
+$(ETHTOOL_DIR)/.installed: $(ETHTOOL_DIR)/ethtool
+ cp $(ETHTOOL_DIR)/ethtool $(TARGET_DIR)/usr/sbin
+ touch $@
-ethtool: uclibc $(ETHTOOL_WORKDIR)/.installed
+ethtool: uclibc $(ETHTOOL_DIR)/.installed
ethtool-source: $(DL_DIR)/$(ETHTOOL_SOURCE)
ethtool-clean:
- @if [ -d $(ETHTOOL_WORKDIR)/Makefile ] ; then \
- $(MAKE) -C $(ETHTOOL_WORKDIR) clean ; \
- fi;
+ -$(MAKE) -C $(ETHTOOL_DIR) clean
ethtool-dirclean:
- rm -rf $(ETHTOOL_DIR) $(ETHTOOL_WORKDIR)
+ rm -rf $(ETHTOOL_DIR)
#############################################################
#
# Toplevel Makefile options