1246149Ssjg# $Id: inc.mk,v 1.3 2011/03/11 05:23:05 sjg Exp $ 2246149Ssjg# 3246149Ssjg# @(#) Copyright (c) 2008, Simon J. Gerraty 4246149Ssjg# 5246149Ssjg# This file is provided in the hope that it will 6246149Ssjg# be of use. There is absolutely NO WARRANTY. 7246149Ssjg# Permission to copy, redistribute or otherwise 8246149Ssjg# use this file is hereby granted provided that 9246149Ssjg# the above copyright notice and this notice are 10246149Ssjg# left intact. 11246149Ssjg# 12246149Ssjg# Please send copies of changes and bug-fixes to: 13246149Ssjg# sjg@crufty.net 14246149Ssjg# 15246149Ssjg 16246149Ssjg.include <init.mk> 17246149Ssjg 18246149Ssjgincludes: ${INCS} 19246149Ssjg 20246149Ssjg.if !empty(LIBOWN) 21246149SsjgINC_INSTALL_OWN ?= -o ${LIBOWN} -g ${LIBGRP} 22246149Ssjg.endif 23246149SsjgINCMODE ?= 444 24246149SsjgINC_COPY ?= -C 25246149SsjgINCSDIR ?= ${INCDIR} 26246149Ssjg 27246149Ssjgrealinstall: incinstall 28246149Ssjg.if !target(incinstall) 29246149Ssjgincinstall: 30246149Ssjg.if !empty(INCS) 31246149Ssjg [ -d ${DESTDIR}${INCSDIR} ] || \ 32246149Ssjg ${INSTALL} -d ${INC_INSTALL_OWN} -m 775 ${DESTDIR}${INCSDIR} 33246149Ssjg ${INSTALL} ${INC_COPY} ${INC_INSTALL_OWN} -m ${INCMODE} ${INCS} ${DESTDIR}${INCSDIR} 34246149Ssjg.endif 35246149Ssjg.endif 36