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