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