mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

commit d61d431a6ed7b00c5157218e8315bb3e7624c5df
parent 536cf386bb40ba87c0d7e056df3b774100ab3292
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Mon, 19 May 2014 22:40:35 +0300

Add support for packaging

'mk package' will create a tar.gz file with everything
'mk install' would install

Diffstat:
Mmk.3rdparty | 1+
Mmk.common | 1+
Mmk.common-noinst | 1+
Amk.package | 7+++++++
Mmk.parent | 1+
5 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/mk.3rdparty b/mk.3rdparty @@ -46,3 +46,4 @@ distclean:QV: fi <$mkbuild/mk.fetch +<$mkbuild/mk.package diff --git a/mk.common b/mk.common @@ -1,6 +1,7 @@ <$mkbuild/mk.config <$mkbuild/mk.build <$mkbuild/mk.install +<$mkbuild/mk.package <$mkbuild/mk.clean fetch:VQ: diff --git a/mk.common-noinst b/mk.common-noinst @@ -1,5 +1,6 @@ <$mkbuild/mk.config <$mkbuild/mk.build +<$mkbuild/mk.package <$mkbuild/mk.clean fetch:VQ: diff --git a/mk.package b/mk.package @@ -0,0 +1,7 @@ + +package:QV: + pkg=$(basename `pwd`) + env -i PATH="$PATH" configmk="$configmk" mkbuild="$mkbuild" mk install ROOT=$(pwd)/.pkgroot + tar -zcf $pkg.tar.gz -C .pkgroot . + rm -rf .pkgroot + diff --git a/mk.parent b/mk.parent @@ -36,3 +36,4 @@ fetch:QV: cd .. done +<$mkbuild/mk.package