Browse Source

Add in a make release target

Eric Andersen 24 years ago
parent
commit
c784f7652f
1 changed files with 13 additions and 1 deletions
  1. 13 1
      Makefile

+ 13 - 1
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