1# $NetBSD: Makefile,v 1.29 2003/12/04 23:32:37 keihan Exp $ 2 3.include <bsd.own.mk> 4 5# 6# Makefile for building a standalone send-pr. 7# 8 9srcdir= ${.CURDIR} 10bindir= /usr/bin 11datadir= /usr/share 12 13# 14# Begin CONFIGURATION SECTION 15# 16VERSION=3.95 17 18# Where the GNATS database and master configuration stuff lives. 19GNATS_ROOT = 20 21# Email address to which people should submit bugs. 22GNATS_ADDR = gnats-bugs@gnats.NetBSD.org 23 24# The default release for this send-pr. 25DEFAULT_RELEASE = `uname -s` `uname -r` 26 27# The default organization for this send-pr. 28DEFAULT_ORGANIZATION = 29 30# The default GNATS site for send-pr. 31GNATS_SITE = netbsd 32 33# The submitter-id for your site. 34SUBMITTER = net 35 36# Command line to use for mailer 37MAIL_AGENT = /usr/sbin/sendmail -oi -t 38 39# Command line to display the passwd database 40PASSWD = cat /etc/passwd 41 42# Echo(1) style 43ECHON = bsd 44 45# 46# END OF CONFIGURATION SECTION 47# 48 49BINDIR= ${bindir} 50LIBDIR= ${datadir} 51MAN= send-pr.1 52 53CLEANFILES= send-pr send-pr.1 send-pr.el install-sid 54 55realall: send-pr send-pr.1 send-pr.el install-sid 56 57send-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 $@ 72 73install-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 $@ 79 80send-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 $@ 91 92send-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 $@ 97 98FILES=send-pr install-sid 99FILESMODE_send-pr=${BINMODE} 100FILESMODE_install-sid=${BINMODE} 101.if ${MKSHARE} != "no" 102FILES+=categories send-pr.el 103FILESDIR_send-pr.el=${LIBDIR}/gnats 104FILESDIR_categories=${LIBDIR}/gnats 105FILESNAME_categories=${GNATS_SITE} 106.endif 107 108TEXINFO= send-pr.texi 109INFOFLAGS= -I${.CURDIR} 110 111.include <bsd.info.mk> 112.include <bsd.prog.mk> 113