summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile38
-rw-r--r--Makefile.in20
2 files changed, 18 insertions, 40 deletions
diff --git a/Makefile b/Makefile
index ccf81eaed..05547b69f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,30 +1,16 @@
# Makefile for uClibc
#
-# Copyright (C) 2000-2003 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Library General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later
-# version.
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU Library General
-# Public License along with this program; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-# Boston, MA 02111-1307 USA
-
#--------------------------------------------------------------
# You shouldn't need to mess with anything beyond this point...
#--------------------------------------------------------------
noconfig_targets := menuconfig config oldconfig randconfig \
defconfig allyesconfig allnoconfig clean distclean \
- release tags
+ release dist tags
TOPDIR=./
include Rules.mak
@@ -375,20 +361,16 @@ distclean: clean
$(RM) extra/locale/*.txt
$(MAKE) -C extra clean
-release: distclean
- cd ..; \
- $(RM) -r uClibc-$(VERSION); \
- cp -dRf uClibc uClibc-$(VERSION); \
- find uClibc-$(VERSION)/ -type f \
- -name .\#* -exec $(RM) -r {} \; ; \
- find uClibc-$(VERSION)/ -type d \
- -name .svn -exec $(RM) -r {} \; ; \
- \
- tar -cvzf uClibc-$(VERSION).tar.gz uClibc-$(VERSION)/
+dist release:
+ $(MAKE) -s distclean
+ $(RM) -r ../uClibc-$(VERSION) ../uClibc-$(VERSION).tar.gz
+ svn -q export . ../uClibc-$(VERSION)
+ tar czf ../uClibc-$(VERSION).tar.gz -C .. uClibc-$(VERSION)
+ du -b ../uClibc-$(VERSION).tar.gz
endif # ifeq ($(HAVE_DOT_CONFIG),y)
check:
$(MAKE) -C test
-.PHONY: dummy subdirs release distclean clean config oldconfig menuconfig utils
+.PHONY: dummy subdirs release dist distclean clean config oldconfig menuconfig utils
diff --git a/Makefile.in b/Makefile.in
index 80a41f3d2..652694f22 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -10,7 +10,7 @@
#--------------------------------------------------------------
noconfig_targets := menuconfig config oldconfig randconfig \
defconfig allyesconfig allnoconfig clean distclean \
- release tags
+ release dist tags
TOPDIR=./
@@ -369,16 +369,12 @@ distclean: clean
$(RM) extra/locale/*.txt
$(MAKE) -C extra clean
-release: distclean
- cd ..; \
- $(RM) -r uClibc-$(VERSION); \
- cp -dRf uClibc uClibc-$(VERSION); \
- find uClibc-$(VERSION)/ -type f \
- -name .\#* -exec $(RM) -r {} \; ; \
- find uClibc-$(VERSION)/ -type d \
- -name .svn -exec $(RM) -r {} \; ; \
- \
- tar -cvzf uClibc-$(VERSION).tar.gz uClibc-$(VERSION)/
+dist release:
+ $(MAKE) -s distclean
+ $(RM) -r ../uClibc-$(VERSION) ../uClibc-$(VERSION).tar.gz
+ svn -q export . ../uClibc-$(VERSION)
+ tar czf ../uClibc-$(VERSION).tar.gz -C .. uClibc-$(VERSION)
+ du -b ../uClibc-$(VERSION).tar.gz
endif # ifeq ($(HAVE_DOT_CONFIG),y)
@@ -387,4 +383,4 @@ include $(top_srcdir)Makerules
check:
$(MAKE) -C test
-.PHONY: dummy subdirs release distclean clean config oldconfig menuconfig utils
+.PHONY: dummy subdirs release dist distclean clean config oldconfig menuconfig utils