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