Expand PMF_FN_* macros.
[netbsd-mini2440.git] / gnu / usr.bin / send-pr / Makefile
blobee4cb45de0186f2247e87a442f40b2b66797c949
1 # $NetBSD: Makefile,v 1.29 2003/12/04 23:32:37 keihan Exp $
3 .include <bsd.own.mk>
6 # Makefile for building a standalone send-pr.
9 srcdir= ${.CURDIR}
10 bindir= /usr/bin
11 datadir= /usr/share
14 # Begin CONFIGURATION SECTION
16 VERSION=3.95
18 # Where the GNATS database and master configuration stuff lives.
19 GNATS_ROOT =
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.
31 GNATS_SITE = netbsd
33 # The submitter-id for your site.
34 SUBMITTER = net
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
42 # Echo(1) style
43 ECHON = bsd
46 # END OF CONFIGURATION SECTION
49 BINDIR= ${bindir}
50 LIBDIR= ${datadir}
51 MAN= send-pr.1
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
58 ${_MKTARGET_CREATE}
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
70 mv -f $@-t $@
71 chmod 755 $@
73 install-sid: install-sid.sh Makefile
74 ${_MKTARGET_CREATE}
75 ${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
76 -e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
77 mv -f $@-t $@
78 chmod 755 $@
80 send-pr.el: send-pr-el.in Makefile
81 ${_MKTARGET_CREATE}
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 \
89 > $@-t
90 mv -f $@-t $@
92 send-pr.1: send-pr.man Makefile
93 ${_MKTARGET_CREATE}
94 ${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
95 -e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
96 mv -f $@-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}
106 .endif
108 TEXINFO= send-pr.texi
109 INFOFLAGS= -I${.CURDIR}
111 .include <bsd.info.mk>
112 .include <bsd.prog.mk>