2001-03-27 14:59:06 +00:00
|
|
|
# $FreeBSD$
|
1994-08-29 04:02:54 +00:00
|
|
|
#
|
|
|
|
# Makefile for building a standalone send-pr.
|
|
|
|
#
|
|
|
|
|
2001-04-07 11:21:35 +00:00
|
|
|
SCRIPTS= send-pr
|
2001-03-27 14:59:06 +00:00
|
|
|
MAN= send-pr.1
|
1994-10-15 21:39:54 +00:00
|
|
|
SUBMITTERS= current-users
|
1996-02-08 06:04:57 +00:00
|
|
|
RELEASE= `uname -rsm`
|
|
|
|
RELEASE_EV!= uname -rsm
|
1994-10-15 21:39:54 +00:00
|
|
|
CLEANFILES+= send-pr send-pr.el
|
1994-08-29 04:02:54 +00:00
|
|
|
|
1995-01-16 17:49:20 +00:00
|
|
|
SUBDIR+= doc
|
|
|
|
|
1995-08-28 23:16:28 +00:00
|
|
|
LINKS= ${BINDIR}/send-pr ${BINDIR}/sendbug
|
1995-08-29 13:01:40 +00:00
|
|
|
MLINKS= send-pr.1 sendbug.1
|
1995-08-28 23:16:28 +00:00
|
|
|
|
1994-10-15 21:39:54 +00:00
|
|
|
send-pr: send-pr.sh Makefile
|
|
|
|
sed -e 's,@DATADIR@,/etc,g' \
|
|
|
|
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
|
1994-10-22 23:34:57 +00:00
|
|
|
-e 's/^SUBMITTER=.*/SUBMITTER=$(SUBMITTERS)/' \
|
1994-10-15 21:39:54 +00:00
|
|
|
${.ALLSRC:N*Makefile} > ${.TARGET}
|
|
|
|
|
|
|
|
send-pr.el: send-pr-el.in Makefile
|
|
|
|
sed -e 's,@DATADIR@,/etc,g' \
|
1996-02-08 06:04:57 +00:00
|
|
|
-e 's/@DEFAULT_RELEASE@/$(RELEASE_EV)/g' \
|
1994-10-15 21:39:54 +00:00
|
|
|
-e 's/"unknown"/"$(SUBMITTERS)"/g' \
|
|
|
|
${.ALLSRC:N*Makefile} > ${.TARGET}
|
1994-08-29 04:02:54 +00:00
|
|
|
|
1996-08-17 22:27:08 +00:00
|
|
|
# called from /usr/src/etc/Makefile
|
|
|
|
etc-gnats-freefall:
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0644 \
|
1994-08-29 04:02:54 +00:00
|
|
|
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|