summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/send-pr/Makefile
blob: 5504a1cd27151e5634ee795913d1a1c25b95b9b6 (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
30
31
32
#
# Makefile for building a standalone send-pr.
#

MAN1=		send-pr.1
SUBMITTERS=	current-users
RELEASE!=	uname -rsm
CLEANFILES+=	send-pr send-pr.el

SUBDIR+= doc

all: send-pr _PROGSUBDIR

send-pr:	send-pr.sh Makefile
	sed -e 's,@DATADIR@,/etc,g' \
	    -e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
	    -e 's/^SUBMITTER=.*/SUBMITTER=$(SUBMITTERS)/' \
	    ${.ALLSRC:N*Makefile} > ${.TARGET}

send-pr.el:	send-pr-el.in Makefile
	sed -e 's,@DATADIR@,/etc,g' \
	    -e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' \
	    -e 's/"unknown"/"$(SUBMITTERS)"/g' \
	    ${.ALLSRC:N*Makefile} > ${.TARGET}

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		send-pr ${DESTDIR}${BINDIR}/send-pr
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 0644 \
		${.CURDIR}/categories  ${DESTDIR}/etc/gnats/freefall

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud