1 # Makefile for GNU send-pr.
2 # Copyright (C) 1993 Free Software Foundation, Inc.
4 # This file is part of GNU GNATS.
6 # GNU GNATS is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # GNU GNATS is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GNU GNATS; see the file COPYING. If not, write to
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 # Start of system configuration section.
25 # Where the GNATS database and master configuration stuff lives.
26 GNATS_ROOT
= @GNATS_ROOT@
28 # Email address to which people should submit bugs.
29 GNATS_ADDR
= @GNATS_ADDR@
31 # The default release for this send-pr.
32 DEFAULT_RELEASE
= @DEFAULT_RELEASE@
34 # The default organization for this send-pr.
35 DEFAULT_ORGANIZATION
= @DEFAULT_ORGANIZATION@
37 # The default GNATS site for send-pr.
38 GNATS_SITE
= @GNATS_SITE@
40 # The submitter-id for your site.
41 SUBMITTER
= @SUBMITTER@
43 # Command line to use for mailer
44 MAIL_AGENT
= @MAIL_AGENT@
46 # Command line to display the passwd database
50 SEND_PR_INSTALL
= install-norm install-categories
57 # Set RANLIB = echo if your system doesn't have or need ranlib.
60 # Where to find texinfo.tex to format docn with TeX
61 TEXIDIR
= $(srcdir)/..
/texinfo
66 INSTALL
= $(srcdir)/..
/install.sh
-c
67 INSTALL_PROGRAM
= $(INSTALL
)
68 INSTALL_DATA
= $(INSTALL
) -m
644
75 EMACS
= `if [ -f ./../emacs19/Makefile ] ; then \
76 echo "EMACSLOADPATH=\`cd
$(srcdir)/..
/emacs19
/lisp
; pwd\
` ; \
77 export EMACSLOADPATH ; \
78 ./../emacs19/src/emacs" ; \
85 exec_prefix = $(prefix)
86 bindir = $(exec_prefix)/bin
87 libdir = $(exec_prefix)/lib
90 program_transform_name
=
92 # Edit this to be the location of your emacs lisp files.
95 datadir = $(prefix)/lib
96 mandir = $(prefix)/man
97 man1dir = $(mandir)/man1
98 man2dir = $(mandir)/man2
99 man3dir = $(mandir)/man3
100 man4dir = $(mandir)/man4
101 man5dir = $(mandir)/man5
102 man6dir = $(mandir)/man6
103 man7dir = $(mandir)/man7
104 man8dir = $(mandir)/man8
105 man9dir = $(mandir)/man9
106 infodir = $(prefix)/info
107 includedir = $(prefix)/include
108 docdir
= $(datadir)/doc
110 # End of system configuration section.
116 #### System configurations, if any, are inserted here.
118 DISTFILES
= COPYING ChangeLog Makefile.in README configure.in \
119 install-sid.sh send-pr-el.in send-pr.man send-pr.texi fields.texi \
120 states.texi s-usage.texi categ.texi send-pr.sh
122 all: send-pr install-sid send-pr.elc send-pr
.1
124 send-pr
: send-pr.sh Makefile
125 ${TOOL_SED} -e
's,xVERSIONx,$(VERSION),' \
126 -e
's,xGNATS_ROOTx,$(GNATS_ROOT),' \
127 -e
's,xGNATS_ADDRx,$(GNATS_ADDR),' \
128 -e
's,xGNATS_SITEx,$(GNATS_SITE),' \
129 -e
's,xSUBMITTERx,$(SUBMITTER),' \
130 -e
's,xECHONx,$(ECHON),' \
131 -e
's,xMAIL_AGENTx,$(MAIL_AGENT),' \
132 -e
's,xPASSWDx,$(PASSWD),' \
133 -e
's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
134 -e
's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
135 -e
's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh
> $@
-t
139 install-sid
: install-sid.sh Makefile
140 ${TOOL_SED} -e
's,xBINDIRx,$(bindir),g' \
141 -e
's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh
> $@
-t
145 send-pr.el
: send-pr-el.in Makefile
146 ${TOOL_SED} -e
's,xVERSIONx,$(VERSION),' \
147 -e
's,xGNATS_ROOTx,$(GNATS_ROOT),' \
148 -e
's,xGNATS_SITEx,$(GNATS_SITE),' \
149 -e
's,xDATADIRx,$(datadir),' \
150 -e
's,xSUBMITTERx,$(SUBMITTER),' \
151 -e
's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
152 $(srcdir)/send-pr-el.in \
156 send-pr.elc
: send-pr.el
157 -PWD
=`pwd` eval
$(EMACS
) -batch
-q
-f batch-byte-compile send-pr.el
159 install: $(SEND_PR_INSTALL
)
160 install-tools
: install-norm install-categories
161 install-gnats
: install-norm install-gnats-dist install-categories
163 install-norm all-gnats
:
164 $(INSTALL_PROGRAM
) send-pr
$(bindir)/send-pr
165 $(INSTALL_PROGRAM
) install-sid
$(bindir)/install-sid
166 $(INSTALL_DATA
) send-pr
.1 $(man1dir)/send-pr
.1
167 $(INSTALL_DATA
) send-pr.el
$(lispdir
)/send-pr.el
168 if
[ -f send-pr.elc
]; then \
169 $(INSTALL_DATA
) send-pr.elc
$(lispdir
)/send-pr.elc
; \
172 # Install the Cygnus category list for bug reports.
174 $(INSTALL_DATA
) $(srcdir)/categories
$(datadir)/gnats
/cygnus
177 $(INSTALL_DATA
) $(srcdir)/COPYING
$(datadir)/gnats
/dist/COPYING
178 $(INSTALL_DATA
) $(srcdir)/README
$(datadir)/gnats
/dist/README
179 $(INSTALL_DATA
) $(srcdir)/INSTALL
$(datadir)/gnats
/dist/INSTALL
180 $(INSTALL_DATA
) $(srcdir)/MANIFEST
$(datadir)/gnats
/dist/MANIFEST
182 -e
's/"DEFAULT_RELEASE") ".*"/"DEFAULT_RELEASE") "@''DEFAULT_RELEASE@"/' \
183 -e
's/"SUBMITTER") ".*"/"SUBMITTER") "@''SUBMITTER@"/' \
184 -e
's/"DATADIR") ".*"/"DATADIR") "@''DATADIR@"/' \
185 send-pr.el
> $(datadir)/gnats
/dist/send-pr-el.inT
186 mv
$(datadir)/gnats
/dist/send-pr-el.inT \
187 $(datadir)/gnats
/dist/send-pr-el.in
188 ${TOOL_SED} -e
's/GNATS_ROOT=.*/GNATS_ROOT=/' \
189 -e
's/SUBMITTER=.*/SUBMITTER=@''SUBMITTER@/' \
190 -e
's/DEFAULT_RELEASE=.*/DEFAULT_RELEASE="@''DEFAULT_RELEASE@"/' \
191 -e
's/DEFAULT_ORGANIZATION=.*/DEFAULT_ORGANIZATION=/' \
192 -e
's/DATADIR=.*/DATADIR=@''DATADIR@/' \
193 send-pr
> $(datadir)/gnats
/dist/send-pr.sh-t
194 mv
$(datadir)/gnats
/dist/send-pr.sh-t \
195 $(datadir)/gnats
/dist/send-pr.sh
196 ${TOOL_SED} -e
's/^BINDIR=.*/BINDIR=@''BINDIR@/' \
197 install-sid
> $(datadir)/gnats
/dist/install-sid.sT
198 mv
$(datadir)/gnats
/dist/install-sid.sT \
199 $(datadir)/gnats
/dist/install-sid.sh
200 $(INSTALL_DATA
) send-pr
.1 $(datadir)/gnats
/dist/send-pr
.1
201 for i in
`if [ ! -f send-pr.info ];then echo $(srcdir)/;fi`send-pr.
info* ; do \
202 $(INSTALL_DATA
) $$i $(datadir)/gnats
/dist/$$i ; \
204 $(INSTALL_DATA
) $(srcdir)/send-pr.texi \
205 $(datadir)/gnats
/dist/send-pr.texi
206 $(INSTALL_DATA
) $(srcdir)/s-usage.texi \
207 $(datadir)/gnats
/dist/s-usage.texi
208 $(INSTALL_DATA
) $(srcdir)/categ.texi \
209 $(datadir)/gnats
/dist/categ.texi
210 $(INSTALL_DATA
) $(srcdir)/fields.texi \
211 $(datadir)/gnats
/dist/fields.texi
212 $(INSTALL_DATA
) $(srcdir)/states.texi \
213 $(datadir)/gnats
/dist/states.texi
214 $(INSTALL_DATA
) $(srcdir)/..
/texinfo
/texinfo.
tex \
215 $(datadir)/gnats
/dist/texinfo.
tex
217 install-info
: send-pr.
info
218 for i in send-pr.
info* ; do \
219 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
223 -rm -f
$(bindir)/send-pr
$(bindir)/install-sid
224 -rm -f
$(datadir)/gnats
/$(GNATS_SITE
)
225 -[ x
$$GNATS_ROOT = x
] ||
rm -rf
$(datadir)/gnats
/dist
226 -rmdir
$(datadir)/gnats
227 -rm -f
$(man1dir)/send-pr
.1
228 -rm -f
$(lispdir
)/send-pr.el
$(lispdir
)/send-pr.elc
229 -rm -f
$(infodir)/send-pr.
info*
236 version.texi
: Makefile
237 echo
"@set VERSION $(VERSION)" > $@
-t
241 ${TOOL_SED} -e
's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
242 -e
's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man
> $@
-t
245 send-pr.
info: send-pr.texi version.texi fields.texi s-usage.texi categ.texi
246 $(MAKEINFO
) -I
$(srcdir) -o send-pr.
info $(srcdir)/send-pr.texi
248 send-pr.
dvi: version.texi
249 $(TEXI2DVI
) $(srcdir)/send-pr.texi
251 # When building GNATS, this target is used to communicate information
252 # known only to the GNATS configuration.
253 gnats-build
: stamp-gnats
255 stamp-gnats
: Makefile
256 ${TOOL_SED} -e
's,^GNATS_ROOT =.*,GNATS_ROOT = $(GNATS_ROOT),' \
257 -e
's,^GNATS_ADDR =.*,GNATS_ADDR = $(GNATS_ADDR),' \
258 -e
's,^GNATS_SITE =.*,GNATS_SITE = $(GNATS_SITE),' \
259 -e
's,^DEFAULT_RELEASE =.*,DEFAULT_RELEASE = $(DEFAULT_RELEASE),' \
260 -e
's%^DEFAULT_ORGANIZATION =.*%DEFAULT_ORGANIZATION = $(DEFAULT_ORGANIZATION)%' \
261 -e
's,^SUBMITTER =.*,SUBMITTER = $(SUBMITTER),' \
262 -e
's,^VERSION =.*,VERSION = $(VERSION),' \
263 -e
's,^MAIL_AGENT =.*,MAIL_AGENT = $(MAIL_AGENT),' \
264 -e
's,^SEND_PR_INSTALL =.*,SEND_PR_INSTALL = $(GNATS_INSTALL),' \
265 Makefile
> Makefile.tmp \
266 && mv Makefile.tmp Makefile \
272 -rm -f send-pr install-sid send-pr
.1 send-pr.el send-pr.elc stamp-gnats
276 -rm -f
*.toc
*.log
*.vr
*.fn
*.cp
*.tp
*.ky
*.pg
279 -rm -f Makefile config.status
280 -rm -rf
=* .
/"#"* *~
*
284 -rm -f TAGS send-pr.
info* send-pr.??s version.texi
288 echo need to do something for
dist
293 # Prevent GNU make v3 from overflowing arg limit on SysV.
296 Makefile
: $(srcdir)/Makefile.in
297 $(SHELL
) config.status
; \
298 if
[ -f ..
/gnats
/Makefile
]; then cd ..
/gnats
; $(MAKE
) config-send-pr
; fi