mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 5e195101a34df744a0dbd87e0c38cf1f392d0c18
parent fb0bda41790e8d987180001f75e18fd5e2cda35b
Author: z3bra <willyatmailoodotorg>
Date:   Sat Jan 16 14:05:57 2016

default.mk: use $destdir for installation/packing

Diffstat:
 default.mk | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/default.mk b/default.mk @@ -1,6 +1,8 @@ +destdir = ${PWD}/$pkg-$ver/.rootfs + # create a pack from an chroot install (see the "install" target) $pkg\:$ver.tar.bz2:Q: install - cd $pkg-$ver/.rootfs + cd $destdir tar -c `ls` | bzip2 -c > ../../$pkg:$ver.tar.bz2 # recipe trying to follow the most common pattern in software @@ -14,9 +16,9 @@ build:QV: fetch patch # install the pack to a .rootfs directory # this is where the "pack" target will chdir to create the pack install:QV: build - mkdir -p $pkg-$ver/.rootfs + mkdir -p $destdir cd $pkg-$ver - make PREFIX= DESTDIR=$(pwd)/.rootfs install + make PREFIX= DESTDIR=$destdir install # patch your software using everything in ./patches patch:QV: fetch