mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-29 06:47:21 +01:00
55ff8fb132
put the stuff into the right "distribution". As default things end up in "bindist". Normal (ie: most) makefiles know naught of this. More commits will follow, which will direct various parts of the tree into the distribution we want them in. Some of the grief of being release-engineer is supposed to go away with this.
93 lines
2.0 KiB
Makefile
93 lines
2.0 KiB
Makefile
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
|
|
# $Id: bsd.doc.mk,v 1.3 1994/08/28 15:37:39 bde Exp $
|
|
|
|
PRINTER?= ps
|
|
|
|
BIB?= bib
|
|
EQN?= eqn -T${PRINTER}
|
|
GREMLIN?= grn
|
|
GRIND?= vgrind -f
|
|
INDXBIB?= indxbib
|
|
INSTALL?= install
|
|
PIC?= pic
|
|
REFER?= refer
|
|
ROFF?= groff -T${PRINTER} ${MACROS} -o${PAGES}
|
|
SOELIM?= soelim
|
|
TBL?= tbl
|
|
|
|
PAGES?= 1-
|
|
|
|
# Compatibility mode flag for groff. Use this when formatting documents with
|
|
# Berkeley me macros.
|
|
COMPAT?= -C
|
|
|
|
.PATH: ${.CURDIR}
|
|
|
|
all: ${DOC}.${PRINTER}
|
|
|
|
.if !target(print)
|
|
print: ${DOC}.${PRINTER}
|
|
lpr -P${PRINTER} ${DOC}.${PRINTER}
|
|
.endif
|
|
|
|
.if !target(obj)
|
|
.if defined(NOOBJ)
|
|
obj:
|
|
.else
|
|
obj:
|
|
@cd ${.CURDIR}; rm -f obj > /dev/null 2>&1 || true; \
|
|
here=`pwd`; subdir=`echo $$here | sed 's,^/usr/src/,,'`; \
|
|
if test $$here != $$subdir ; then \
|
|
dest=/usr/obj/$$subdir ; \
|
|
${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \
|
|
if test -d /usr/obj -a ! -d $$dest; then \
|
|
mkdir -p $$dest; \
|
|
else \
|
|
true; \
|
|
fi; \
|
|
else \
|
|
true ; \
|
|
dest=$$here/obj ; \
|
|
${ECHO} "making $$here/obj" ; \
|
|
if test ! -d obj ; then \
|
|
mkdir $$here/obj; \
|
|
fi ; \
|
|
fi;
|
|
.endif
|
|
.endif
|
|
|
|
clean:
|
|
rm -f ${DOC}.* [eE]rrs mklog ${CLEANFILES}
|
|
|
|
cleandir:
|
|
rm -f ${DOC}.* [eE]rrs mklog ${CLEANFILES}
|
|
cd ${.CURDIR}; rm -rf obj
|
|
|
|
FILES?= ${SRCS}
|
|
install:
|
|
@if [ ! -d "${DESTDIR}${BINDIR}/${VOLUME}" ]; then \
|
|
/bin/rm -f ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
mkdir -p ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
chown root.wheel ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
chmod 755 ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
else \
|
|
true ; \
|
|
fi
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DOC}.* \
|
|
${DESTDIR}${BINDIR}/${VOLUME}
|
|
|
|
DISTRIBUTION?= bindist
|
|
.if !target(distribute)
|
|
distribute:
|
|
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
|
.endif
|
|
|
|
spell: ${SRCS}
|
|
(cd ${.CURDIR}; spell ${SRCS} ) | sort | \
|
|
comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
|
|
|
|
BINDIR?= /usr/share/doc
|
|
BINGRP?= bin
|
|
BINOWN?= bin
|
|
BINMODE?= 444
|