tazusb rev 67 2.3

Improve Makefile. Change VERSION to 2.3
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Mar 21 22:40:11 2010 +0100 (2010-03-21)
parents ef6e1c9adb1f
children 5095ca97aeb3
files Makefile tazusb
line diff
     1.1 --- a/Makefile	Sat Mar 20 18:40:54 2010 +0100
     1.2 +++ b/Makefile	Sun Mar 21 22:40:11 2010 +0100
     1.3 @@ -6,6 +6,12 @@
     1.4  DESTDIR?=
     1.5  LINGUAS?=fr pt
     1.6  
     1.7 +PACKAGE	=	tazusb
     1.8 +VERSION	:=	$(shell grep ^VERSION ${PACKAGE} | cut -d '=' -f 2)
     1.9 +TARBALL	=	$(PACKAGE)-$(VERSION).tar.gz
    1.10 +DISTDIR	=	/tmp/$(PACKAGE)-$(VERSION)
    1.11 +
    1.12 +
    1.13  all:
    1.14  
    1.15  # i18n.
    1.16 @@ -51,3 +57,17 @@
    1.17  clean:
    1.18  	rm -rf _pkg
    1.19  	rm -rf po/mo
    1.20 +
    1.21 +dist-clean:
    1.22 +	rm -rf $(DISTDIR)
    1.23 +	rm -f $(DISTDIR).*
    1.24 +	
    1.25 +# Build tarball and MD5 file for packagin.
    1.26 +dist: dist-clean
    1.27 +	mkdir -p $(DISTDIR)
    1.28 +	cp -a * $(DISTDIR)
    1.29 +	cd /tmp ; \
    1.30 +		tar cvzf $(TARBALL) $(PACKAGE)-$(VERSION); \
    1.31 +		md5sum $(TARBALL) > $(TARBALL).md5
    1.32 +	
    1.33 +
     2.1 --- a/tazusb	Sat Mar 20 18:40:54 2010 +0100
     2.2 +++ b/tazusb	Sun Mar 21 22:40:11 2010 +0100
     2.3 @@ -8,7 +8,7 @@
     2.4  # Authors : Christophe Lincoln (Pankso) <pankso@slitaz.org>
     2.5  #           Andrew Miller (Spode) <spode@spodesabode.com>
     2.6  #
     2.7 -VERSION=2.2
     2.8 +VERSION=2.3
     2.9  
    2.10  COMMAND=$1
    2.11  TARGET_ROOT=/media/flash