tdefault.mk: use $destdir for installation/packing - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 5e195101a34df744a0dbd87e0c38cf1f392d0c18
 (DIR) parent fb0bda41790e8d987180001f75e18fd5e2cda35b
 (HTM) Author: z3bra <willyatmailoodotorg>
       Date:   Sat, 16 Jan 2016 14:05:57 +0100
       
       default.mk: use $destdir for installation/packing
       
       Diffstat:
         M default.mk                          |       8 +++++---
       
       1 file changed, 5 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/default.mk b/default.mk
       t@@ -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
       t@@ -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