summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-13 20:40:30 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-13 20:40:30 +0000
commitc784f7652f07e0488d373ad0b1bfd26cf95a8178 (patch)
tree2cc9785ce4df5650ed22899ba52a7b41739dabd8
parent24700c28ae7d0ac28c1109da2d15ac7d5b95858c (diff)
Add in a make release target
-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