diff options
Diffstat (limited to 'contrib/bmake/mk/inc.mk')
-rw-r--r-- | contrib/bmake/mk/inc.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/contrib/bmake/mk/inc.mk b/contrib/bmake/mk/inc.mk new file mode 100644 index 0000000..5d57f52 --- /dev/null +++ b/contrib/bmake/mk/inc.mk @@ -0,0 +1,35 @@ +# $Id: inc.mk,v 1.3 2011/03/11 05:23:05 sjg Exp $ +# +# @(#) Copyright (c) 2008, Simon J. Gerraty +# +# This file is provided in the hope that it will +# be of use. There is absolutely NO WARRANTY. +# Permission to copy, redistribute or otherwise +# use this file is hereby granted provided that +# the above copyright notice and this notice are +# left intact. +# +# Please send copies of changes and bug-fixes to: +# sjg@crufty.net +# + +.include <init.mk> + +includes: ${INCS} + +.if !empty(LIBOWN) +INC_INSTALL_OWN ?= -o ${LIBOWN} -g ${LIBGRP} +.endif +INCMODE ?= 444 +INC_COPY ?= -C +INCSDIR ?= ${INCDIR} + +realinstall: incinstall +.if !target(incinstall) +incinstall: +.if !empty(INCS) + [ -d ${DESTDIR}${INCSDIR} ] || \ + ${INSTALL} -d ${INC_INSTALL_OWN} -m 775 ${DESTDIR}${INCSDIR} + ${INSTALL} ${INC_COPY} ${INC_INSTALL_OWN} -m ${INCMODE} ${INCS} ${DESTDIR}${INCSDIR} +.endif +.endif |