1 # $NetBSD: Makefile,v 1.29 2003/12/04 23:32:37 keihan Exp $
6 # Makefile for building a standalone send-pr.
14 # Begin CONFIGURATION SECTION
18 # Where the GNATS database and master configuration stuff lives.
21 # Email address to which people should submit bugs.
22 GNATS_ADDR
= gnats-bugs@gnats.NetBSD.org
24 # The default release for this send-pr.
25 DEFAULT_RELEASE
= `uname -s` `uname -r`
27 # The default organization for this send-pr.
28 DEFAULT_ORGANIZATION
=
30 # The default GNATS site for send-pr.
33 # The submitter-id for your site.
36 # Command line to use for mailer
37 MAIL_AGENT
= /usr
/sbin
/sendmail
-oi
-t
39 # Command line to display the passwd database
40 PASSWD
= cat
/etc
/passwd
46 # END OF CONFIGURATION SECTION
53 CLEANFILES
= send-pr send-pr
.1 send-pr.el install-sid
55 realall
: send-pr send-pr
.1 send-pr.el install-sid
57 send-pr
: send-pr.sh Makefile
59 ${TOOL_SED} -e
's,xVERSIONx,$(VERSION),' \
60 -e
's,xGNATS_ROOTx,$(GNATS_ROOT),' \
61 -e
's,xGNATS_ADDRx,$(GNATS_ADDR),' \
62 -e
's,xGNATS_SITEx,$(GNATS_SITE),' \
63 -e
's,xSUBMITTERx,$(SUBMITTER),' \
64 -e
's,xECHONx,$(ECHON),' \
65 -e
's,xMAIL_AGENTx,$(MAIL_AGENT),' \
66 -e
's,xPASSWDx,$(PASSWD),' \
67 -e
's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
68 -e
's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
69 -e
's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh
> $@
-t
73 install-sid
: install-sid.sh Makefile
75 ${TOOL_SED} -e
's,xBINDIRx,$(bindir),g' \
76 -e
's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh
> $@
-t
80 send-pr.el
: send-pr-el.in Makefile
82 ${TOOL_SED} -e
's,xVERSIONx,$(VERSION),' \
83 -e
's,xGNATS_ROOTx,$(GNATS_ROOT),' \
84 -e
's,xGNATS_SITEx,$(GNATS_SITE),' \
85 -e
's,xDATADIRx,$(datadir),' \
86 -e
's,xSUBMITTERx,$(SUBMITTER),' \
87 -e
's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
88 $(srcdir)/send-pr-el.in \
92 send-pr
.1: send-pr.man Makefile
94 ${TOOL_SED} -e
's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
95 -e
's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man
> $@
-t
98 FILES
=send-pr install-sid
99 FILESMODE_send-pr
=${BINMODE}
100 FILESMODE_install-sid
=${BINMODE}
101 .if
${MKSHARE} != "no"
102 FILES
+=categories send-pr.el
103 FILESDIR_send-pr.el
=${LIBDIR}/gnats
104 FILESDIR_categories
=${LIBDIR}/gnats
105 FILESNAME_categories
=${GNATS_SITE}
108 TEXINFO
= send-pr.texi
109 INFOFLAGS
= -I
${.CURDIR
}
111 .
include <bsd.
info.mk
>
112 .
include <bsd.prog.mk
>