freebsd-dev/gnu/usr.bin/send-pr/Makefile
2003-09-07 13:38:07 +00:00

36 lines
882 B
Makefile

# $FreeBSD$
#
# Makefile for building a standalone send-pr.
#
SCRIPTS= send-pr
MAN= send-pr.1
SUBMITTERS= current-users
RELEASE= `uname -rsm`
CLEANFILES+= send-pr send-pr.el
SUBDIR+= doc
LINKS= ${BINDIR}/send-pr ${BINDIR}/sendbug
MLINKS= send-pr.1 sendbug.1
send-pr: send-pr.sh Makefile
sed -e 's,@DATADIR@,/etc,g' \
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
-e 's/^SUBMITTER=.*/SUBMITTER=$(SUBMITTERS)/' \
${.ALLSRC:N*Makefile} > ${.TARGET}
send-pr.el: send-pr-el.in Makefile
default_release=`uname -rsm`; \
sed -e 's,@DATADIR@,/etc,g' \
-e "s/@DEFAULT_RELEASE@/$${default_release}/g" \
-e 's/"unknown"/"$(SUBMITTERS)"/g' \
${.ALLSRC:N*Makefile} > ${.TARGET}
# called from /usr/src/etc/Makefile
etc-gnats-freefall:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0644 \
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
.include <bsd.prog.mk>