From 5e416e32e68af7b483acf9378c70de178e24ded2 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 25 Aug 2015 21:28:55 +0000 Subject: [PATCH] add clean rules to makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 61bd287..0d34fa1 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,13 @@ MUSL_CONFIG = CC=$(OUTPUT)/bin/$(TARGET)-gcc --prefix= all: steps/install_binutils steps/install_musl steps/install_gcc +clean: + rm -rf gcc-$(GCC_VER) binutils-$(BINUTILS_VER) musl + rm -rf steps/extract_* steps/clone_* + rm -rf steps/configure_* steps/build_* steps/install_* + +distclean: clean + rm -rf sources/config.sub sources/*.tar.bz2 steps/configure_gcc0: steps/install_binutils steps/configure_gcc: steps/install_musl