CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed issues in Makefile with distclean tags
authorJose V Beneyto <sepen@crux.nu>
Tue, 6 Mar 2012 12:33:12 +0000 (12:33 +0000)
committerJose V Beneyto <sepen@crux.nu>
Tue, 6 Mar 2012 12:33:12 +0000 (12:33 +0000)
Makefile

index 1a35730d8e2271e37558b0d6a77fc4de86fbbddb..7a23cd5d3e90afbc3e6d9b64ae76f516ae7c868f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ all: initrd
 
 clean: busybox-clean dialog-clean initrd-clean
 
-dist-clean: busybox-distclean dialog-distclean initrd-distclean
+distclean: busybox-distclean dialog-distclean initrd-distclean
 
 check-root:
        @if [ "$$UID" != "0" ]; then \
@@ -55,7 +55,7 @@ busybox: $(WORK)/busybox-$(BUSYBOX_VERSION)/_install/bin/busybox
 busybox-clean:
        rm -vrf $(WORK)/busybox-$(BUSYBOX_VERSION)
 
-busybox-distclean:
+busybox-distclean: busybox-clean
        rm -vf $(WORK)/busybox-$(BUSYBOX_VERSION).tar.bz2
 
 $(WORK)/dialog-$(DIALOG_VERSION).tgz:
@@ -82,8 +82,8 @@ dialog: $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog
 dialog-clean:
        rm -vrf $(WORK)/dialog-$(DIALOG_VERSION)
 
-dialog-distclean:
-       rm -rf $(WORK)/dialog-$(DIALOG_VERSION).tgz
+dialog-distclean: dialog-clean
+       rm -vf $(WORK)/dialog-$(DIALOG_VERSION).tgz
 
 $(WORK)/mnt:
        mkdir -p $(WORK)/mnt
@@ -108,7 +108,7 @@ $(WORK)/initrd.gz: check-root busybox dialog $(WORK)/mnt $(TOPDIR)/filesystem $(
 initrd: $(WORK)/initrd.gz
 
 initrd-clean: check-root
-       rm -rf initrd.gz
+       rm -vf $(WORK)/initrd.gz
 
 initrd-distclean: initrd-clean