aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-25 16:46:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-25 16:46:02 -0700
commited67201fcc004ccb0eb20e5489d71ed69cfb7428 (patch)
tree55cea829c53c57d14577f65f35302a3bb6d97837
parent5c12206bf5c223df3f555c6c2b4aed06cfe357a1 (diff)
downloadsyslinux-elf-syslinux-3.72.tar.gz
syslinux-elf-syslinux-3.72.tar.xz
syslinux-elf-syslinux-3.72.zip
Fix "make clean" confusionsyslinux-3.72
"make clean" must NOT remove stuff that "make installer" should not rebuild. This is a somewhat unfortunate choice of naming, but that's the way it is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/gdbstub/Makefile5
-rw-r--r--com32/lib/Makefile6
-rw-r--r--com32/libutil/Makefile5
-rw-r--r--com32/menu/Makefile3
-rw-r--r--com32/modules/Makefile3
-rw-r--r--com32/samples/Makefile3
-rw-r--r--modules/Makefile2
7 files changed, 16 insertions, 11 deletions
diff --git a/com32/gdbstub/Makefile b/com32/gdbstub/Makefile
index c5b79ead..2c9171e5 100644
--- a/com32/gdbstub/Makefile
+++ b/com32/gdbstub/Makefile
@@ -32,13 +32,14 @@ all: $(MODULES) $(TESTFILES)
gdbstub.elf : $(OBJS) $(LIBS) $(C_LIBS)
$(LD) $(LDFLAGS) -o $@ $^
-tidy dist:
+tidy dist clean:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
clean: tidy
- rm -f *.lss *.c32 *.lnx *.com
+ rm -f *.lnx
spotless: clean
+ rm -f *.lss *.c32 *.com
rm -f *~ \#*
install: all
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index dbca5b6d..02799040 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -108,15 +108,13 @@ libcom32.a : $(LIBOBJS)
$(AR) cq $@ $^
$(RANLIB) $@
-tidy dist:
+tidy dist clean:
rm -f sys/vesa/alphatbl.c
find . \( -name \*.o -o -name .\*.d -o -name \*.tmp \) -print0 | \
xargs -0r rm -f
-clean: tidy
- rm -f *.a
-
spotless: clean
+ rm -f *.a
rm -f *~ \#* */*~ */\#*
install: all
diff --git a/com32/libutil/Makefile b/com32/libutil/Makefile
index d7967cdb..31754a91 100644
--- a/com32/libutil/Makefile
+++ b/com32/libutil/Makefile
@@ -52,7 +52,10 @@ tidy dist:
rm -f *.o *.lo *.lst *.elf .*.d *.tmp
clean: tidy
- rm -f *.lss *.a *.c32 *.lnx *.com
+ rm -f *.lnx libutil_lnx.a
+
+spotless: clean
+ rm -f *.lss *.a *.c32 *.com
spotless: clean
rm -f *~ \#*
diff --git a/com32/menu/Makefile b/com32/menu/Makefile
index 44212c3b..d6293bbd 100644
--- a/com32/menu/Makefile
+++ b/com32/menu/Makefile
@@ -38,9 +38,10 @@ tidy dist:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
clean: tidy
- rm -f *.lss *.c32 *.lnx *.com
+ rm -f *.lnx
spotless: clean
+ rm -f *.lss *.c32 *.com
rm -f *~ \#*
install: all
diff --git a/com32/modules/Makefile b/com32/modules/Makefile
index eb3a9a1e..7a52ba9d 100644
--- a/com32/modules/Makefile
+++ b/com32/modules/Makefile
@@ -41,9 +41,10 @@ tidy dist:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
clean: tidy
- rm -f *.lss *.c32 *.lnx *.com
+ rm -f *.lnx
spotless: clean
+ rm -f *.lss *.c32 *.com
rm -f *~ \#*
install: all
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index 28260a35..abba4d6f 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -27,9 +27,10 @@ tidy dist:
rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
clean: tidy
- rm -f *.lss *.c32 *.lnx *.com
+ rm -f *.lnx
spotless: clean
+ rm -f *.lss *.c32 *.com
rm -f *~ \#*
install: # Don't install samples
diff --git a/modules/Makefile b/modules/Makefile
index 5caf5e6e..1ffe9ef3 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -58,6 +58,6 @@ tidy dist:
rm -f *.o *.a *.lst *.elf
clean: tidy
- rm -f $(BINS)
spotless: clean
+ rm -f $(BINS)