Explorar o código

Add in a make release target

Eric Andersen %!s(int64=24) %!d(string=hai) anos
pai
achega
c784f7652f
Modificáronse 1 ficheiros con 13 adicións e 1 borrados
  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