freebsd-skq/share/sendmail/Makefile
gshapiro 6709d5cb0c Unbreak installworld. Revision 1.41 of src/usr.bin/xinstall/xinstall.c
made the usage here incorrect.

Note that the change to install may cause other things to break, such as
the advice in src/etc/defaults/make.conf:

# Compare before install
#INSTALL=install -C

If users actually use this, any ${INSTALL} -d invocations in an installworld
will also fail.

Submitted by:	David Wolfskill <david@catwhisker.org>
MFC after:	2 days
2001-05-29 17:55:49 +00:00

36 lines
932 B
Makefile

# $FreeBSD$
#
# Doing a make install builds /usr/share/sendmail/
MAINTAINER= gshapiro@FreeBSD.org
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
CFDIR= cf
CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type d -print)
CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( -name CVS -prune \) -o -type f -print)
DDIR= ${DESTDIR}/usr/share/sendmail
NOOBJ= noobj
# Define SHARED to indicate whether you want symbolic links to the system
# source (``symlinks''), or a separate copy (``copies'')
SHARED?= copies
all clean cleandir depend lint tags:
beforeinstall: ${SHARED}
copies::
.for dir in ${CFDIRS}
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
.endfor
.for file in ${CFFILES}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
.endfor
symlinks::
rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
.include <bsd.prog.mk>