summaryrefslogtreecommitdiffstats
path: root/busybox.mk
diff options
context:
space:
mode:
authorJon Nelson <jnelson@securepipe.com>2002-01-06 18:54:35 +0000
committerJon Nelson <jnelson@securepipe.com>2002-01-06 18:54:35 +0000
commite1be1eadeea92f61f457bf53e55ea6cc0443e9aa (patch)
treeac8e294e74b6cfa3f64be792f63a3a550c161fb1 /busybox.mk
parentc79e99824e064382cbbfed2bc56d5d6aae710ff0 (diff)
downloadbuildroot-novena-e1be1eadeea92f61f457bf53e55ea6cc0443e9aa.tar.gz
buildroot-novena-e1be1eadeea92f61f457bf53e55ea6cc0443e9aa.zip
some more cleanups. This one works pretty well
Diffstat (limited to 'busybox.mk')
-rw-r--r--busybox.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/busybox.mk b/busybox.mk
index e53af6f1a..25a22c7db 100644
--- a/busybox.mk
+++ b/busybox.mk
@@ -21,11 +21,12 @@ $(SOURCE_DIR)/$(BUSYBOX_SOURCE):
done
$(BUSYBOX_DIR)/.unpacked: $(SOURCE_DIR)/$(BUSYBOX_SOURCE)
+ rm -rf $(BUSYBOX_DIR) # Make sure no older version interferes
tar -xzf $(SOURCE_DIR)/$(BUSYBOX_SOURCE)
touch $(BUSYBOX_DIR)/.unpacked
$(BUSYBOX_WORKDIR)/.config: $(BUSYBOX_DIR)/.unpacked
- rm -rf $(BUSYBOX_WORKDIR)
+ rm -rf $(BUSYBOX_WORKDIR) # Make sure no half-configured busybox interferes
mkdir -p $(BUSYBOX_WORKDIR)
(cd $(BUSYBOX_WORKDIR) && sh $(BUSYBOX_DIR)/pristine_setup.sh)
@perl -i -p \
@@ -40,13 +41,12 @@ $(BUSYBOX_WORKDIR)/.config: $(BUSYBOX_DIR)/.unpacked
$(BUSYBOX_WORKDIR)/Config.h
touch $(BUSYBOX_WORKDIR)/.config
-$(BUSYBOX_WORKDIR)/busybox: $(TARGET_CC) $(BUSYBOX_WORKDIR)/.config
- rm -f $(BUSYBOX_WORKDIR)/busybox
+$(BUSYBOX_WORKDIR)/.built: $(TARGET_CC) $(BUSYBOX_WORKDIR)/.config
make CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_WORKDIR)
+ touch $(BUSYBOX_WORKDIR)/.built
-$(TARGET_DIR)/bin/busybox: $(BUSYBOX_WORKDIR)/busybox
- make CROSS="$(TARGET_CROSS)" PREFIX=$(TARGET_DIR) \
- -C $(BUSYBOX_WORKDIR) install
+$(TARGET_DIR)/bin/busybox: $(BUSYBOX_WORKDIR)/.built
+ make PREFIX=$(TARGET_DIR) -C $(BUSYBOX_WORKDIR) install
busybox: $(TARGET_DIR)/bin/busybox