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