blob: 76ecf503fa912e58b0d7e68cc37b5c129ad9a41a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#
# Makefile for building a standalone send-pr.
#
BINDIR= /usr/bin
NOOBJ=noobj
MAN1= send-pr.1
DATADIR=/etc
SUBMITTERS=current-users
RELEASE=`uname -rsm`
all: send-pr.sh send-pr-el.in install-sid.sh
sed -e 's,@DATADIR@,$(DATADIR),g' \
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' send-pr.sh > send-pr
sed -e 's,@DATADIR@,$(DATADIR),g' \
-e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' send-pr-el.in > send-pr.el
sed -e 's,@BINDIR@,$(BINDIR),g' install-sid.sh > install-sid
beforeinstall:
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/send-pr ${DESTDIR}/usr/bin/send-pr
install -c -o ${BINOWN} -g ${BINGRP} -m 0644 \
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
sh ${.CURDIR}/install-sid ${SUBMITTERS}
clean:
rm -f send-pr send-pr.el install-sid
.include <bsd.prog.mk>
|