tlinux: install kernel header for current kernel - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 7578f9928e8845e9f25783f3fd20a1f668633890
 (DIR) parent 40b429ea4064fc0da0f26ad81883bdadaf4cc1ee
 (HTM) Author: root <root@doom.z3bra.org>
       Date:   Tue, 23 May 2017 06:40:39 +0000
       
       linux: install kernel header for current kernel
       
       Diffstat:
         A linux/mkfile                        |      14 ++++++++++++++
       
       1 file changed, 14 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/linux/mkfile b/linux/mkfile
       t@@ -0,0 +1,14 @@
       +pkg = linux
       +ver = `{uname -r | cut -d- -f1}
       +url = https://www.kernel.org/pub/linux/kernel/v4.x/$pkg-$ver.tar.xz
       +
       +<../default.mk
       +
       +build:QV: fetch patch
       +        cd $WORK/$pkg-$ver
       +        make mrproper
       +
       +install:QV: build
       +        mkdir -p $destdir
       +        cd $WORK/$pkg-$ver
       +        make ${MAKEFLAGS} INSTALL_HDR_PATH=$destdir headers_install