summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-04-12 13:26:57 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-04-12 13:26:57 +0000
commite9d3884e01f3a1e67717ee773424bd8133f8556e (patch)
treefda442737a0d68b2f4ca7718a23222f587582dfe /package
parent59a9c02e1355bcd630a207e8be319a044597ad1d (diff)
downloadbuildroot-novena-e9d3884e01f3a1e67717ee773424bd8133f8556e.tar.gz
buildroot-novena-e9d3884e01f3a1e67717ee773424bd8133f8556e.zip
haserl: depend on haserl binary in TARGET_DIR and also cleanup TARGET_DIR.
Diffstat (limited to 'package')
-rw-r--r--package/haserl/haserl.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/haserl/haserl.mk b/package/haserl/haserl.mk
index 9aca06060..bea7b2b2b 100644
--- a/package/haserl/haserl.mk
+++ b/package/haserl/haserl.mk
@@ -10,6 +10,7 @@ HASERL_SOURCE:=haserl-$(HASERL_VERSION).tar.gz
HASERL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/haserl/
HASERL_DIR:=$(BUILD_DIR)/haserl-$(HASERL_VERSION)
HASERL_CAT:=$(ZCAT)
+HASERL_BINARY:=usr/bin/haserl
$(DL_DIR)/$(HASERL_SOURCE):
$(WGET) -P $(DL_DIR) $(HASERL_SITE)/$(HASERL_SOURCE)
@@ -35,11 +36,10 @@ $(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
$(HASERL_DIR)/src/haserl: $(HASERL_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(HASERL_DIR)
-$(HASERL_DIR)/.installed: $(HASERL_DIR)/src/haserl
- cp $(HASERL_DIR)/src/haserl $(TARGET_DIR)/usr/bin
- touch $@
+$(TARGET_DIR)/$(HASERL_BINARY): $(HASERL_DIR)/src/haserl
+ cp $^ $@
-haserl: uclibc $(HASERL_DIR)/.installed
+haserl: uclibc $(TARGET_DIR)/$(HASERL_BINARY)
haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
@@ -47,6 +47,7 @@ haserl-unpacked: $(HASERL_DIR)/.unpacked
haserl-clean:
-$(MAKE) -C $(HASERL_DIR) clean
+ rm -f $(TARGET_DIR)/$(HASERL_BINARY)
haserl-dirclean:
rm -rf $(HASERL_DIR)