summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1994-10-15 21:39:54 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1994-10-15 21:39:54 +0000
commit7b82c373ed32c3c376b7ee31a6fe85f586c38ec8 (patch)
treeb860649a8415e1f8f359985db7919924f792cc69
parentdaf49c81cc25caca7ffe66dc2afa43ef5860dba7 (diff)
Notes
-rw-r--r--gnu/usr.bin/send-pr/Makefile34
1 files changed, 18 insertions, 16 deletions
diff --git a/gnu/usr.bin/send-pr/Makefile b/gnu/usr.bin/send-pr/Makefile
index 65108b2522fa..e8cb2a00e49d 100644
--- a/gnu/usr.bin/send-pr/Makefile
+++ b/gnu/usr.bin/send-pr/Makefile
@@ -2,27 +2,29 @@
# Makefile for building a standalone send-pr.
#
-BINDIR= /usr/bin
-MAN1= send-pr.1
-DATADIR=/etc
-SUBMITTERS=current-users
-RELEASE=`uname -rsm`
+MAN1= send-pr.1
+SUBMITTERS= current-users
+RELEASE!= uname -rsm
+CLEANFILES+= send-pr send-pr.el
-all: ${.CURDIR}/send-pr.sh ${.CURDIR}/send-pr-el.in ${.CURDIR}/install-sid.sh
- sed -e 's,@DATADIR@,$(DATADIR),g' \
- -e 's/@DEFAULT_RELEASE@/$(RELEASE)/g' ${.CURDIR}/send-pr.sh > send-pr
- sed -e 's,@DATADIR@,$(DATADIR),g' \
- -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
+all: send-pr
+
+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}/usr/bin/send-pr
+ send-pr ${DESTDIR}${BINDIR}/send-pr
install -c -o ${BINOWN} -g ${BINGRP} -m 0644 \
${.CURDIR}/categories ${DESTDIR}/etc/gnats/freefall
- sh install-sid ${SUBMITTERS}
-
-clean:
- rm -f send-pr send-pr.el install-sid
.include <bsd.prog.mk>