1994-08-29 04:02:54 +00:00
|
|
|
#
|
|
|
|
# Makefile for building a standalone send-pr.
|
|
|
|
#
|
|
|
|
|
1994-10-15 21:39:54 +00:00
|
|
|
MAN1= send-pr.1
|
|
|
|
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
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
all: send-pr _SUBDIR
|
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
|
|
|
|
|
|
|
beforeinstall:
|
1997-01-01 04:22:23 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1994-10-15 21:39:54 +00:00
|
|
|
send-pr ${DESTDIR}${BINDIR}/send-pr
|
1996-08-17 22:27:08 +00:00
|
|
|
|
|
|
|
# called from /usr/src/etc/Makefile
|
|
|
|
etc-gnats-freefall:
|
1995-07-25 00:37:58 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 0644 \
|
1994-08-29 04:02:54 +00:00
|
|
|
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|