summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1064fcf28..143aece36 100644
--- a/Makefile
+++ b/Makefile
@@ -242,15 +242,27 @@ ifeq ($(strip $(HAVE_SHARED)),true)
fi;
endif
-clean:
+distclean clean:
@rm -rf tmp lib include/bits/uClibc_config.h uClibc_config.h
- find include -type l -exec rm -f {} \;
- find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
+ $(MAKE) -C test clean
$(MAKE) -C ldso clean
$(MAKE) -C libc/unistd clean
$(MAKE) -C libc/sysdeps/linux/common clean
$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean
$(MAKE) -C extra/gcc-uClibc clean
+dist release: distclean
+ cd ..; \
+ rm -rf uClibc-$(VERSION); \
+ cp -a uClibc uClibc-$(VERSION); \
+ \
+ find uClibc-$(VERSION)/ -type d \
+ -name CVS \
+ -exec rm -rf {} \; ; \
+ \
+ tar -cvzf uClibc-$(VERSION).tar.gz --exclude CVS uClibc-$(VERSION)/;
+
.PHONY: dummy subdirs