xref: /netbsd-src/external/gpl2/send-pr/bin/Makefile (revision 592de268975f5e928629b0d08ceb8377bf4cb16e)
1*592de268Schristos#	$NetBSD: Makefile,v 1.1 2016/01/14 21:13:20 christos Exp $
2*592de268Schristos
3*592de268Schristos.include <bsd.own.mk>
4*592de268Schristos
5*592de268Schristos#
6*592de268Schristos# Makefile for building a standalone send-pr.
7*592de268Schristos#
8*592de268Schristos
9*592de268Schristossrcdir=		${.CURDIR}/../dist/send-pr
10*592de268Schristosbindir=		/usr/bin
11*592de268Schristosdatadir=	/usr/share
12*592de268Schristos.PATH: ${srcdir}
13*592de268Schristos
14*592de268Schristos#
15*592de268Schristos# Begin CONFIGURATION SECTION
16*592de268Schristos#
17*592de268SchristosVERSION=3.95
18*592de268Schristos
19*592de268Schristos# Where the GNATS database and master configuration stuff lives.
20*592de268SchristosGNATS_ROOT =
21*592de268Schristos
22*592de268Schristos# Email address to which people should submit bugs.
23*592de268SchristosGNATS_ADDR = gnats-bugs@NetBSD.org
24*592de268Schristos
25*592de268Schristos# The default release for this send-pr.
26*592de268SchristosDEFAULT_RELEASE = `uname -s` `uname -r`
27*592de268Schristos
28*592de268Schristos# The default organization for this send-pr.
29*592de268SchristosDEFAULT_ORGANIZATION =
30*592de268Schristos
31*592de268Schristos# The default GNATS site for send-pr.
32*592de268SchristosGNATS_SITE = netbsd
33*592de268Schristos
34*592de268Schristos# The submitter-id for your site.
35*592de268SchristosSUBMITTER = net
36*592de268Schristos
37*592de268Schristos# Command line to use for mailer
38*592de268SchristosMAIL_AGENT = /usr/sbin/sendmail -oi -t
39*592de268Schristos
40*592de268Schristos# Command line to display the passwd database
41*592de268SchristosPASSWD = cat /etc/passwd
42*592de268Schristos
43*592de268Schristos# Echo(1) style
44*592de268SchristosECHON = bsd
45*592de268Schristos
46*592de268Schristos#
47*592de268Schristos# END OF CONFIGURATION SECTION
48*592de268Schristos#
49*592de268Schristos
50*592de268SchristosBINDIR=		${bindir}
51*592de268SchristosLIBDIR=		${datadir}
52*592de268SchristosMAN=		send-pr.1
53*592de268Schristos
54*592de268SchristosCLEANFILES=	send-pr send-pr.1 send-pr.el install-sid
55*592de268Schristos
56*592de268Schristosrealall:	send-pr send-pr.1 send-pr.el install-sid
57*592de268Schristos
58*592de268Schristossend-pr:	send-pr.sh Makefile
59*592de268Schristos	${_MKTARGET_CREATE}
60*592de268Schristos	${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
61*592de268Schristos            -e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
62*592de268Schristos            -e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
63*592de268Schristos            -e 's,xGNATS_SITEx,$(GNATS_SITE),' \
64*592de268Schristos            -e 's,xSUBMITTERx,$(SUBMITTER),' \
65*592de268Schristos            -e 's,xECHONx,$(ECHON),' \
66*592de268Schristos            -e 's,xMAIL_AGENTx,$(MAIL_AGENT),' \
67*592de268Schristos            -e 's,xPASSWDx,$(PASSWD),' \
68*592de268Schristos	    -e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
69*592de268Schristos	    -e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
70*592de268Schristos	    -e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
71*592de268Schristos	mv -f $@-t $@
72*592de268Schristos	chmod 755 $@
73*592de268Schristos
74*592de268Schristosinstall-sid:	install-sid.sh Makefile
75*592de268Schristos	${_MKTARGET_CREATE}
76*592de268Schristos	${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
77*592de268Schristos	    -e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
78*592de268Schristos	mv -f $@-t $@
79*592de268Schristos	chmod 755 $@
80*592de268Schristos
81*592de268Schristossend-pr.el:	send-pr-el.in Makefile
82*592de268Schristos	${_MKTARGET_CREATE}
83*592de268Schristos	${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
84*592de268Schristos            -e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
85*592de268Schristos            -e 's,xGNATS_SITEx,$(GNATS_SITE),' \
86*592de268Schristos            -e 's,xDATADIRx,$(datadir),' \
87*592de268Schristos            -e 's,xSUBMITTERx,$(SUBMITTER),' \
88*592de268Schristos            -e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
89*592de268Schristos		$(srcdir)/send-pr-el.in \
90*592de268Schristos            > $@-t
91*592de268Schristos	mv -f $@-t $@
92*592de268Schristos
93*592de268Schristossend-pr.1:	send-pr.man Makefile
94*592de268Schristos	${_MKTARGET_CREATE}
95*592de268Schristos	${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
96*592de268Schristos	    -e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
97*592de268Schristos	mv -f $@-t $@
98*592de268Schristos
99*592de268SchristosFILES=send-pr install-sid
100*592de268SchristosFILESMODE_send-pr=${BINMODE}
101*592de268SchristosFILESMODE_install-sid=${BINMODE}
102*592de268Schristos.if ${MKSHARE} != "no"
103*592de268SchristosFILES+=categories send-pr.el
104*592de268SchristosFILESDIR_send-pr.el=${LIBDIR}/gnats
105*592de268SchristosFILESDIR_categories=${LIBDIR}/gnats
106*592de268SchristosFILESNAME_categories=${GNATS_SITE}
107*592de268Schristos.endif
108*592de268Schristos
109*592de268SchristosTEXINFO=	send-pr.texi
110*592de268SchristosINFOFLAGS=	-I${.CURDIR}
111*592de268Schristos
112*592de268Schristos.include <bsd.info.mk>
113*592de268Schristos.include <bsd.prog.mk>
114