NetBSD/gnu/usr.bin/send-pr/Makefile

103 lines
2.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 1998/09/27 17:22:06 lukem Exp $
1995-04-23 11:58:27 +04:00
#
# Makefile for building a standalone send-pr.
#
srcdir= ${.CURDIR}
bindir= /usr/bin
datadir= /usr/share
#
# Begin CONFIGURATION SECTION
#
VERSION=3.95
# Where the GNATS database and master configuration stuff lives.
GNATS_ROOT =
# Email address to which people should submit bugs.
GNATS_ADDR = gnats-bugs@gnats.netbsd.org
# The default release for this send-pr.
DEFAULT_RELEASE = <NetBSD-current source date>
# The default organization for this send-pr.
DEFAULT_ORGANIZATION =
# The default GNATS site for send-pr.
GNATS_SITE = netbsd
# The submitter-id for your site.
SUBMITTER = net
# Command line to use for mailer
MAIL_AGENT = /usr/sbin/sendmail -oi -t
# Command line to display the passwd database
1994-01-25 22:34:01 +03:00
PASSWD = cat /etc/passwd
# Echo(1) style
ECHON = bsd
#
# END OF CONFIGURATION SECTION
#
BINDIR= ${bindir}
LIBDIR= ${datadir}
NOPROG=
1994-12-22 12:31:26 +03:00
MAN= send-pr.1
CLEANFILES= send-pr send-pr.1 send-pr.el install-sid
all: send-pr send-pr.1 send-pr.el install-sid
send-pr: send-pr.sh Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xSUBMITTERx,$(SUBMITTER),' \
-e 's,xECHONx,$(ECHON),' \
-e 's,xMAIL_AGENTx,$(MAIL_AGENT),' \
-e 's,xPASSWDx,$(PASSWD),' \
-e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
-e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
1994-12-06 10:05:35 +03:00
mv -f $@-t $@
chmod 755 $@
install-sid: install-sid.sh Makefile
sed -e 's,xBINDIRx,$(bindir),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
1994-12-06 10:05:35 +03:00
mv -f $@-t $@
chmod 755 $@
send-pr.el: send-pr-el.in Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xDATADIRx,$(datadir),' \
-e 's,xSUBMITTERx,$(SUBMITTER),' \
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
$(srcdir)/send-pr-el.in \
> $@-t
1994-12-06 10:05:35 +03:00
mv -f $@-t $@
send-pr.1: send-pr.man Makefile
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
1994-12-06 10:05:35 +03:00
mv -f $@-t $@
FILES=send-pr install-sid
1997-03-25 01:02:40 +03:00
FILESMODE_send-pr=${BINMODE}
FILESMODE_install-sid=${BINMODE}
.if !defined(NOSHARE)
FILES+=categories
FILESDIR_categories=${LIBDIR}/gnats
FILESNAME_categories=${GNATS_SITE}
.endif
.include <bsd.prog.mk>