1# $Id: bsd.own.mk,v 1.9 1997/02/22 13:56:12 peter Exp $ 2# 3# The include file <bsd.own.mk> set common variables for owner, 4# group, mode, and directories. Defaults are in brackets. 5# 6# 7# +++ variables +++ 8# 9# DESTDIR Change the tree where the file gets installed. [not set] 10# 11# DISTDIR Change the tree where the file for a distribution 12# gets installed (see /usr/src/release/Makefile). [not set] 13# 14# 15# COPY The flag passed to the install program to cause the binary 16# to be copied rather than moved. This is to be used when 17# building our own install script so that the entire system 18# can either be installed with copies, or with moves using 19# a single knob. [-c] 20# 21# COMPRESS_CMD Program to compress documents. 22# Output is to stdout. [gzip -c] 23# 24# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz] 25# 26# STRIP The flag passed to the install program to cause the binary 27# to be stripped. This is to be used when building your 28# own install script so that the entire system can be made 29# stripped/not-stripped using a single knob. [-s] 30# 31# 32# 33# BINOWN Binary owner. [bin] 34# 35# BINGRP Binary group. [bin] 36# 37# BINMODE Binary mode. [555] 38# 39# NOBINMODE Mode for non-executable files. [444] 40# 41# 42# LIBDIR Base path for libraries. [/usr/lib] 43# 44# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 45# 46# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 47# 48# LIBOWN Library mode. [${BINOWN}] 49# 50# LIBGRP Library group. [${BINGRP}] 51# 52# LIBMODE Library mode. [${NOBINMODE}] 53# 54# 55# KMODDIR Base path for loadable kernel modules 56# (see lkm(4)). [/lkm] 57# 58# KMODOWN LKM owner. [${BINOWN}] 59# 60# KMODGRP LKM group. [${BINGRP}] 61# 62# KMODMODE LKM mode. [${BINMODE}] 63# 64# 65# SHAREDIR Base path for architecture-independent ascii 66# text files. [/usr/share] 67# 68# SHAREOWN ASCII text file owner. [bin] 69# 70# SHAREGRP ASCII text file group. [bin] 71# 72# SHAREMODE ASCII text file mode. [${NOBINMODE}] 73# 74# 75# DOCDIR Base path for system documentation (e.g. PSD, USD, 76# handbook, FAQ etc.). [${SHAREDIR}/doc] 77# 78# DOCOWN Documentation owner. [${SHAREOWN}] 79# 80# DOCGRP Documentation group. [${SHAREGRP}] 81# 82# DOCMODE Documentation mode. [${NOBINMODE}] 83# 84# 85# INFODIR Base path for GNU's hypertext system 86# called Info (see info(1)). [${SHAREDIR}/info] 87# 88# INFOOWN Info owner. [${SHAREOWN}] 89# 90# INFOGRP Info group. [${SHAREGRP}] 91# 92# INFOMODE Info mode. [${NOBINMODE}] 93# 94# 95# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 96# 97# MANOWN Manual owner. [${SHAREOWN}] 98# 99# MANGRP Manual group. [${SHAREGRP}] 100# 101# MANMODE Manual mode. [${NOBINMODE}] 102# 103# 104# NLSDIR Base path for National Language Support files 105# installation (see mklocale(1)). [${SHAREDIR}/nls] 106# 107# NLSGRP National Language Support files group. [${SHAREOWN}] 108# 109# NLSOWN National Language Support files owner. [${SHAREGRP}] 110# 111# NLSMODE National Language Support files mode. [${NONBINMODE}] 112# 113 114 115# Binaries 116BINOWN?= bin 117BINGRP?= bin 118BINMODE?= 555 119NOBINMODE?= 444 120 121LIBDIR?= /usr/lib 122LINTLIBDIR?= /usr/libdata/lint 123SHLIBDIR?= ${LIBDIR} 124LIBOWN?= ${BINOWN} 125LIBGRP?= ${BINGRP} 126LIBMODE?= ${NOBINMODE} 127 128KMODDIR?= /lkm 129KMODOWN?= ${BINOWN} 130KMODGRP?= ${BINGRP} 131KMODMODE?= ${BINMODE} 132 133 134# Share files 135SHAREDIR?= /usr/share 136SHAREOWN?= bin 137SHAREGRP?= bin 138SHAREMODE?= ${NOBINMODE} 139 140MANDIR?= ${SHAREDIR}/man/man 141MANOWN?= ${SHAREOWN} 142MANGRP?= ${SHAREGRP} 143MANMODE?= ${NOBINMODE} 144 145DOCDIR?= ${SHAREDIR}/doc 146DOCOWN?= ${SHAREOWN} 147DOCGRP?= ${SHAREGRP} 148DOCMODE?= ${NOBINMODE} 149 150INFODIR?= ${SHAREDIR}/info 151INFOOWN?= ${SHAREOWN} 152INFOGRP?= ${SHAREGRP} 153INFOMODE?= ${NOBINMODE} 154 155NLSDIR?= ${SHAREDIR}/nls 156NLSGRP?= ${SHAREOWN} 157NLSOWN?= ${SHAREGRP} 158NLSMODE?= ${NONBINMODE} 159 160# Common variables 161.if !defined(DEBUG_FLAGS) 162STRIP?= -s 163.endif 164 165COPY?= -c 166COMPRESS_CMD?= gzip -c 167COMPRESS_EXT?= .gz 168