From c784f7652f07e0488d373ad0b1bfd26cf95a8178 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 13 Aug 2001 20:40:30 +0000 Subject: Add in a make release target --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3