~ubuntu-branches/ubuntu/precise/pmake/precise

« back to all changes in this revision

Viewing changes to mk/bsd.files.mk

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2002-03-12 21:59:55 UTC
  • Revision ID: james.westby@ubuntu.com-20020312215955-i183oxj3rpm464yh
Tags: 1.45-10
* Fixed broken '.Nm ""' directives in the man page. Closes: #137768
* Changed name from "make" to "pmake" in manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#       $NetBSD: bsd.files.mk,v 1.8 1999/02/11 13:25:42 tv Exp $
 
2
 
 
3
# This file can be included multiple times.  It clears the definition of
 
4
# FILES at the end so that this is possible.
 
5
 
 
6
.PHONY:         filesinstall
 
7
realinstall:    filesinstall
 
8
 
 
9
.if defined(FILES) && !empty(FILES)
 
10
FILESDIR?=${BINDIR}
 
11
FILESOWN?=${BINOWN}
 
12
FILESGRP?=${BINGRP}
 
13
FILESMODE?=${NONBINMODE}
 
14
.for F in ${FILES}
 
15
FILESDIR_${F}?=${FILESDIR}
 
16
FILESOWN_${F}?=${FILESOWN}
 
17
FILESGRP_${F}?=${FILESGRP}
 
18
FILESMODE_${F}?=${FILESMODE}
 
19
.if defined(FILESNAME)
 
20
FILESNAME_${F} ?= ${FILESNAME}
 
21
.else
 
22
FILESNAME_${F} ?= ${F:T}
 
23
.endif
 
24
filesinstall:: ${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}
 
25
.if !defined(UPDATE)
 
26
.PHONY: ${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}
 
27
.endif
 
28
.if !defined(BUILD)
 
29
${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}: .MADE
 
30
.endif
 
31
 
 
32
.PRECIOUS: ${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}
 
33
${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}: ${F}
 
34
        ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o ${FILESOWN_${F}} \
 
35
                -g ${FILESGRP_${F}} -m ${FILESMODE_${F}} ${.ALLSRC} ${.TARGET}
 
36
.endfor
 
37
.endif
 
38
 
 
39
.if !target(filesinstall)
 
40
filesinstall::
 
41
.endif
 
42
 
 
43
FILES:=