summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-01-20 04:01:05 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-20 04:01:05 +0000
commit4fcc7eb51c79090ef14a22bf3ab9631d9b3c5bf5 (patch)
treeb325897dc2f01a07144f8b8b06a1f4d6bff3a249
parentada4798df0863226ec057a0e07285fe6820b73bd (diff)
downloadmusl-4fcc7eb51c79090ef14a22bf3ab9631d9b3c5bf5.tar.gz
simplify "make clean" and remove unneeded lib dir from tree
the lib dir is automatically created if needed by the out-of-tree build logic, and now that all generated files are in obj and lib, deleting them is much simpler. using "rm -rf" is also more thorough, as it picks up object files that were left around from source files that no longer exist or which are no longer to be used because an arch-specific replacement file was added or removed.
-rw-r--r--Makefile8
-rw-r--r--lib/empty0
2 files changed, 1 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 24c418ad..b68d6f1b 100644
--- a/Makefile
+++ b/Makefile
@@ -82,13 +82,7 @@ $(OBJ_DIRS):
install: install-libs install-headers install-tools
clean:
- rm -f obj/crt/*.o obj/crt/$(ARCH)/*.o
- rm -f $(OBJS)
- rm -f $(LOBJS)
- rm -f $(ALL_LIBS) lib/*.[ao] lib/*.so
- rm -f $(ALL_TOOLS)
- rm -f $(GENH) $(GENH_INT)
- rm -f obj/include/bits/alltypes.h
+ rm -rf obj lib
distclean: clean
rm -f config.mak
diff --git a/lib/empty b/lib/empty
deleted file mode 100644
index e69de29b..00000000
--- a/lib/empty
+++ /dev/null