1994-08-29 04:02:54 +00:00
|
|
|
#
|
|
|
|
# Makefile for building a standalone send-pr.
|
|
|
|
#
|
|
|
|
|
|
|
|
BINDIR= /usr/bin
|
|
|
|
MAN1= send-pr.1
|
|
|
|
DATADIR=/etc
|
|
|
|
SUBMITTERS=current-users
|
|
|
|
RELEASE=`uname -rsm`
|
|
|
|
|
1994-09-09 19:50:44 +00:00
|
|
|
all: ${.CURDIR}/send-pr.sh ${.CURDIR}/send-pr-el.in ${.CURDIR}/install-sid.sh
|
1994-08-29 04:02:54 +00:00
|
|
|
sed -e 's,@DATADIR@,$(DATADIR),g' \
|
1994-09-09 19:50:44 +00:00
|
|
|
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' ${.CURDIR}/send-pr.sh > send-pr
|
1994-08-29 04:02:54 +00:00
|
|
|
sed -e 's,@DATADIR@,$(DATADIR),g' \
|
1994-09-09 19:50:44 +00:00
|
|
|
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' ${.CURDIR}/send-pr-el.in > send-pr.el
|
|
|
|
sed -e 's,@BINDIR@,$(BINDIR),g' ${.CURDIR}/install-sid.sh > install-sid
|
1994-08-29 04:02:54 +00:00
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1994-09-09 19:50:44 +00:00
|
|
|
send-pr ${DESTDIR}/usr/bin/send-pr
|
1994-08-29 04:02:54 +00:00
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 0644 \
|
|
|
|
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
|
1994-09-09 19:50:44 +00:00
|
|
|
sh install-sid ${SUBMITTERS}
|
1994-08-29 04:02:54 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f send-pr send-pr.el install-sid
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|