freebsd-dev/gnu/usr.bin/send-pr/Makefile
Jordan K. Hubbard cd9a2f5c28 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00

37 lines
917 B
Makefile

#
# Makefile for building a standalone send-pr.
#
MAN1= send-pr.1
SUBMITTERS= current-users
RELEASE= `uname -rsm`
RELEASE_EV!= uname -rsm
CLEANFILES+= send-pr send-pr.el
SUBDIR+= doc
LINKS= ${BINDIR}/send-pr ${BINDIR}/sendbug
MLINKS= send-pr.1 sendbug.1
all: send-pr _SUBDIR
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_EV)/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>