]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/bmake/mk/inc.mk
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / bmake / mk / inc.mk
1 # $Id: inc.mk,v 1.3 2011/03/11 05:23:05 sjg Exp $
2 #
3 #       @(#) Copyright (c) 2008, Simon J. Gerraty
4 #
5 #       This file is provided in the hope that it will
6 #       be of use.  There is absolutely NO WARRANTY.
7 #       Permission to copy, redistribute or otherwise
8 #       use this file is hereby granted provided that 
9 #       the above copyright notice and this notice are
10 #       left intact. 
11 #      
12 #       Please send copies of changes and bug-fixes to:
13 #       sjg@crufty.net
14 #
15
16 .include <init.mk>
17
18 includes:       ${INCS}
19
20 .if !empty(LIBOWN)
21 INC_INSTALL_OWN ?= -o ${LIBOWN} -g ${LIBGRP}
22 .endif
23 INCMODE ?= 444
24 INC_COPY ?= -C
25 INCSDIR ?= ${INCDIR}
26
27 realinstall:    incinstall
28 .if !target(incinstall)
29 incinstall:
30 .if !empty(INCS)
31         [ -d ${DESTDIR}${INCSDIR} ] || \
32         ${INSTALL} -d ${INC_INSTALL_OWN} -m 775 ${DESTDIR}${INCSDIR}
33         ${INSTALL} ${INC_COPY} ${INC_INSTALL_OWN} -m ${INCMODE} ${INCS} ${DESTDIR}${INCSDIR}
34 .endif
35 .endif