tazpkg rev 529
Improve Makefile. add targz command
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Aug 30 12:31:42 2011 +0200 (2011-08-30) |
parents | e618eed2ba7e |
children | 93508c46a7cc |
files | Makefile |
line diff
1.1 --- a/Makefile Mon Aug 29 23:54:53 2011 +0200 1.2 +++ b/Makefile Tue Aug 30 12:31:42 2011 +0200 1.3 @@ -8,6 +8,9 @@ 1.4 1.5 VERSION:=$(shell grep ^VERSION=[0-9] tazpkg | cut -d '=' -f 2) 1.6 1.7 +tmpdir = tar-install/tazpkg-$(VERSION) 1.8 +tarball = tazpkg-$(VERSION).tar.gz 1.9 + 1.10 all: msgfmt 1.11 1.12 # i18n. 1.13 @@ -52,7 +55,7 @@ 1.14 1.15 # Installation. 1.16 1.17 -install: 1.18 +install: msgfmt 1.19 # Tazpkg command line interface 1.20 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin 1.21 install -m 0777 tazpkg $(DESTDIR)$(PREFIX)/bin 1.22 @@ -87,7 +90,20 @@ 1.23 1.24 clean: 1.25 rm -rf _pkg 1.26 + rm -rf tar-install 1.27 rm -rf po/mo 1.28 rm -f po/*/*~ 1.29 rm -f po/*/*.mo 1.30 1.31 + 1.32 +targz: 1.33 + rm -rf ${tmpdir} 1.34 + mkdir -p ${tmpdir} 1.35 + 1.36 + make DESTDIR=${tmpdir} install 1.37 + 1.38 + cd tar-install ; \ 1.39 + tar cvzf ${tarball} tazpkg-$(VERSION) ; \ 1.40 + cd - 1.41 + 1.42 + @echo "** Tarball successfully created in tar-install/${tarball}"