~ubuntu-branches/ubuntu/trusty/bmake/trusty-proposed

« back to all changes in this revision

Viewing changes to mk/inc.mk

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-09-22 16:07:33 UTC
  • Revision ID: package-import@ubuntu.com-20130922160733-9cvmsi7z0jswtrbi
Tags: upstream-20130904
ImportĀ upstreamĀ versionĀ 20130904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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