"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.5/src/Makefile.in" (1 Dec 2020, 22598 Bytes) of package /linux/misc/tin-2.4.5.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 2.4.4_vs_2.4.5.

    1 # Source Makefile for tin
    2 # - for configuration options read the ../doc/INSTALL file.
    3 #
    4 # Updated: 2020-01-08
    5 #
    6 # Copyright (c) 1995-2021 Thomas E. Dickey <dickey@invisible-island.net>
    7 # All rights reserved.
    8 #
    9 # Redistribution and use in source and binary forms, with or without
   10 # modification, are permitted provided that the following conditions
   11 # are met:
   12 #
   13 # 1. Redistributions of source code must retain the above copyright notice,
   14 #    this list of conditions and the following disclaimer.
   15 #
   16 # 2. Redistributions in binary form must reproduce the above copyright
   17 #    notice, this list of conditions and the following disclaimer in the
   18 #    documentation and/or other materials provided with the distribution.
   19 #
   20 # 3. Neither the name of the copyright holder nor the names of its
   21 #    contributors may be used to endorse or promote products derived from
   22 #    this software without specific prior written permission.
   23 #
   24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   25 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   26 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   27 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
   28 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   29 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   30 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   31 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   32 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   33 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   34 # POSSIBILITY OF SUCH DAMAGE.
   35 #
   36 
   37 PACKAGE = @PACKAGE@
   38 VERSION = @VERSION@
   39 
   40 SHELL		= /bin/sh
   41 prefix		= @prefix@
   42 exec_prefix	= @exec_prefix@
   43 datarootdir	= @datarootdir@
   44 top_srcdir	= @top_srcdir@
   45 top_builddir	= ..
   46 srcdir		= @srcdir@
   47 VPATH		= $(srcdir)
   48 
   49 # Compiler, linker & parser commands
   50 CC		= @CC@
   51 CPP		= @CPP@
   52 PRELIB		= @LIB_PREFIX@
   53 
   54 x		= @EXEEXT@
   55 o		= .@OBJEXT@
   56 
   57 DEBUG		= @ENABLE_DEBUG@ -DDEBUG # -DPROFILE
   58 FEATURES	= # -DALLOW_FWS_IN_NEWSGROUPLIST # -DEVIL_INSIDE
   59 INTL_CPPFLAGS	= -DLOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\"
   60 PCRE_CPPFLAGS	= @PCREDIR_CPPFLAGS@ @PCREDIR_MAKE@ -I$(top_builddir)/pcre -I$(top_srcdir)/pcre
   61 
   62 CAN_CPPFLAGS	= @CANDIR_MAKE@ @CAN_CPPFLAGS@
   63 
   64 CPPFLAGS	= @DEFS@ -I. -I../include $(PCRE_CPPFLAGS) $(CAN_CPPFLAGS) $(INTL_CPPFLAGS) -I$(INCDIR) $(DEBUG) $(FEATURES) @CPPFLAGS@
   65 CFLAGS		= @CFLAGS@
   66 
   67 LDFLAGS		= @LDFLAGS@
   68 YACC		= @YACC@
   69 
   70 BUILD_CC	= @BUILD_CC@
   71 BUILD_CFLAGS	= @BUILD_CFLAGS@
   72 BUILD_CPPFLAGS	= @DEFS@ @BUILD_CPPFLAGS@ $(PCRE_CPPFLAGS)
   73 BUILD_LDFLAGS	= @BUILD_LDFLAGS@
   74 BUILD_LIBS	= @BUILD_LIBS@
   75 X		= $(BUILD_EXEEXT)
   76 
   77 CANLIB		= @CANLIBS@
   78 INTL_LIBS	= @INTLLIBS@
   79 PCRE_LIBS	= @PCREDIR_LIBS@ @PCREDIR_MAKE@ -L../pcre -lpcre
   80 LIBS		= @LIBS@
   81 LINK_LIBS	= $(PCRE_LIBS) $(CANLIB) @LIBS@ $(INTL_LIBS)
   82 
   83 # Where do you want the binary & manual page installed?
   84 DESTDIR	= @DESTDIR@
   85 INS_BINARY_DIR	= @bindir@
   86 INS_MANUAL_DIR	= @mandir@/man
   87 INS_SYSDEF_DIR	= @TIN_DEFAULTS_DIR@
   88 INS_MANUAL_EXT	= 1
   89 INS_OLD_SUFFIX	= old
   90 
   91 MAN_LINGUAS = de en_GB es
   92 
   93 # Project
   94 PROJECT	= `echo @PACKAGE@|sed '@program_transform_name@'`
   95 PROJEXE = $(PROJECT)$x
   96 EXE	= @PACKAGE@$x
   97 VER	= @VERSION@
   98 
   99 # directory structure
  100 DOCDIR	= $(top_srcdir)/doc
  101 INCDIR	= $(top_srcdir)/include
  102 BINDIR	= .
  103 OBJDIR	= .
  104 SRCDIR	= $(srcdir)
  105 TOLDIR	= $(top_srcdir)/tools
  106 
  107 # standard commands
  108 CD	= cd
  109 CHMOD	= chmod
  110 CP	= cp
  111 ECHO	= echo
  112 LS	= ls
  113 MV	= mv
  114 RM	= rm
  115 SED	= sed
  116 CFLOW	= cflow
  117 CSCOPE	= cscope
  118 TAGS	= ctags
  119 ETAGS	= etags
  120 LINT	= @LINT@
  121 LN	= @LN_S@
  122 INSTALL	= @INSTALL@
  123 @SET_MAKE@
  124 
  125 HFILES	= \
  126 	../include/autoconf.h \
  127 	$(INCDIR)/bool.h \
  128 	$(INCDIR)/bugrep.h \
  129 	$(INCDIR)/debug.h \
  130 	$(INCDIR)/extern.h \
  131 	$(INCDIR)/keymap.h \
  132 	$(INCDIR)/newsrc.h \
  133 	$(INCDIR)/nntplib.h \
  134 	$(INCDIR)/plp_snprintf.h \
  135 	$(INCDIR)/policy.h \
  136 	$(INCDIR)/proto.h \
  137 	$(INCDIR)/rfc2046.h \
  138 	$(INCDIR)/stpwatch.h \
  139 	$(INCDIR)/tin.h \
  140 	$(INCDIR)/tinrc.h \
  141 	$(INCDIR)/tnntp.h \
  142 	$(INCDIR)/version.h
  143 
  144 CFILES	= \
  145 	$(SRCDIR)/active.c \
  146 	$(SRCDIR)/art.c \
  147 	$(SRCDIR)/attrib.c \
  148 	$(SRCDIR)/auth.c \
  149 	$(SRCDIR)/charset.c \
  150 	$(SRCDIR)/color.c \
  151 	$(SRCDIR)/config.c \
  152 	$(SRCDIR)/cook.c \
  153 	$(SRCDIR)/curses.c \
  154 	$(SRCDIR)/debug.c \
  155 	$(SRCDIR)/envarg.c \
  156 	$(SRCDIR)/feed.c \
  157 	$(SRCDIR)/filter.c \
  158 	$(SRCDIR)/getline.c \
  159 	$(SRCDIR)/global.c \
  160 	$(SRCDIR)/group.c \
  161 	$(SRCDIR)/hashstr.c \
  162 	$(SRCDIR)/header.c \
  163 	$(SRCDIR)/help.c \
  164 	$(SRCDIR)/inews.c \
  165 	$(SRCDIR)/init.c \
  166 	$(SRCDIR)/joinpath.c \
  167 	$(SRCDIR)/keymap.c \
  168 	$(SRCDIR)/lang.c \
  169 	$(SRCDIR)/langinfo.c \
  170 	$(SRCDIR)/list.c \
  171 	$(SRCDIR)/lock.c \
  172 	$(SRCDIR)/mail.c \
  173 	$(SRCDIR)/main.c \
  174 	$(SRCDIR)/memory.c \
  175 	$(SRCDIR)/mimetypes.c \
  176 	$(SRCDIR)/misc.c \
  177 	$(SRCDIR)/my_tmpfile.c \
  178 	$(SRCDIR)/newsrc.c \
  179 	$(SRCDIR)/nntplib.c \
  180 	$(SRCDIR)/nrctbl.c \
  181 	$(SRCDIR)/options_menu.c \
  182 	$(SRCDIR)/page.c \
  183 	$(SRCDIR)/parsdate.y \
  184 	$(SRCDIR)/pgp.c \
  185 	$(SRCDIR)/plp_snprintf.c \
  186 	$(SRCDIR)/post.c \
  187 	$(SRCDIR)/prompt.c \
  188 	$(SRCDIR)/read.c \
  189 	$(SRCDIR)/refs.c \
  190 	$(SRCDIR)/regex.c \
  191 	$(SRCDIR)/rfc1524.c \
  192 	$(SRCDIR)/rfc2045.c \
  193 	$(SRCDIR)/rfc2046.c \
  194 	$(SRCDIR)/rfc2047.c \
  195 	$(SRCDIR)/save.c \
  196 	$(SRCDIR)/screen.c \
  197 	$(SRCDIR)/search.c \
  198 	$(SRCDIR)/select.c \
  199 	$(SRCDIR)/sigfile.c \
  200 	$(SRCDIR)/signal.c \
  201 	$(SRCDIR)/strftime.c \
  202 	$(SRCDIR)/string.c \
  203 	$(SRCDIR)/tags.c \
  204 	$(SRCDIR)/tcurses.c \
  205 	$(SRCDIR)/tmpfile.c \
  206 	$(SRCDIR)/thread.c \
  207 	$(SRCDIR)/version.c \
  208 	$(SRCDIR)/wildmat.c \
  209 	$(SRCDIR)/xref.c
  210 
  211 EXTRAOBJS = @EXTRAOBJS@
  212 
  213 EXTRA_INTLLIBS = @INTLDIR_MAKE@ @INTLLIBS@
  214 EXTRA_PCREHDRS = @PCREDIR_MAKE@ ../pcre/pcre.h
  215 EXTRA_PCRELIBS = @PCREDIR_MAKE@ ../pcre/$(PRELIB)pcre.a
  216 EXTRA_CANLIBS = @CANDIR_MAKE@ ../libcanlock/$(PRELIB)canlock.a
  217 EXTRALIBS = $(EXTRA_INTLLIBS) $(EXTRA_PCRELIBS) $(EXTRA_CANLIBS)
  218 
  219 OFILES	= @ALLOCA@ $(EXTRAOBJS) \
  220 	$(OBJDIR)/active$o \
  221 	$(OBJDIR)/art$o \
  222 	$(OBJDIR)/attrib$o \
  223 	$(OBJDIR)/auth$o \
  224 	$(OBJDIR)/charset$o \
  225 	$(OBJDIR)/color$o \
  226 	$(OBJDIR)/config$o \
  227 	$(OBJDIR)/cook$o \
  228 	$(OBJDIR)/curses$o \
  229 	$(OBJDIR)/debug$o \
  230 	$(OBJDIR)/envarg$o \
  231 	$(OBJDIR)/feed$o \
  232 	$(OBJDIR)/filter$o \
  233 	$(OBJDIR)/getline$o \
  234 	$(OBJDIR)/global$o \
  235 	$(OBJDIR)/group$o \
  236 	$(OBJDIR)/hashstr$o \
  237 	$(OBJDIR)/header$o \
  238 	$(OBJDIR)/help$o \
  239 	$(OBJDIR)/inews$o \
  240 	$(OBJDIR)/init$o \
  241 	$(OBJDIR)/joinpath$o \
  242 	$(OBJDIR)/keymap$o \
  243 	$(OBJDIR)/lang$o \
  244 	$(OBJDIR)/langinfo$o \
  245 	$(OBJDIR)/list$o \
  246 	$(OBJDIR)/lock$o \
  247 	$(OBJDIR)/mail$o \
  248 	$(OBJDIR)/main$o \
  249 	$(OBJDIR)/memory$o \
  250 	$(OBJDIR)/mimetypes$o \
  251 	$(OBJDIR)/misc$o \
  252 	$(OBJDIR)/my_tmpfile$o \
  253 	$(OBJDIR)/newsrc$o \
  254 	$(OBJDIR)/nntplib$o \
  255 	$(OBJDIR)/nrctbl$o \
  256 	$(OBJDIR)/options_menu$o \
  257 	$(OBJDIR)/page$o \
  258 	$(OBJDIR)/parsdate$o \
  259 	$(OBJDIR)/pgp$o \
  260 	$(OBJDIR)/plp_snprintf$o \
  261 	$(OBJDIR)/post$o \
  262 	$(OBJDIR)/prompt$o \
  263 	$(OBJDIR)/read$o \
  264 	$(OBJDIR)/refs$o \
  265 	$(OBJDIR)/regex$o \
  266 	$(OBJDIR)/rfc1524$o \
  267 	$(OBJDIR)/rfc2045$o \
  268 	$(OBJDIR)/rfc2046$o \
  269 	$(OBJDIR)/rfc2047$o \
  270 	$(OBJDIR)/save$o \
  271 	$(OBJDIR)/screen$o \
  272 	$(OBJDIR)/search$o \
  273 	$(OBJDIR)/select$o \
  274 	$(OBJDIR)/sigfile$o \
  275 	$(OBJDIR)/signal$o \
  276 	$(OBJDIR)/strftime$o \
  277 	$(OBJDIR)/string$o \
  278 	$(OBJDIR)/tags$o \
  279 	$(OBJDIR)/tcurses$o \
  280 	$(OBJDIR)/tmpfile$o \
  281 	$(OBJDIR)/thread$o \
  282 	$(OBJDIR)/version$o \
  283 	$(OBJDIR)/wildmat$o \
  284 	$(OBJDIR)/xref$o
  285 
  286 ALL_FILES = $(HFILES) $(CFILES)
  287 
  288 LINTFLAGS = @LINTFLAGS@ $(CPPFLAGS)
  289 
  290 all : $(BINDIR)/$(EXE)
  291 
  292 .SUFFIXES : .i
  293 
  294 .c$o :
  295 	@SHOW_CC@
  296 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/$*.c
  297 
  298 .c.i :
  299 	@SHOW_CC@
  300 	@ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
  301 
  302 # explicit rules to allow running lint, and to accommodate older 'make' programs
  303 $(OBJDIR)/parsdate$o : $(SRCDIR)/parsdate.y
  304 	@$(ECHO) "expect 6 shift/reduce conflicts ..."
  305 	$(YACC) $(SRCDIR)/parsdate.y
  306 	$(MV) -f y.tab.c $(OBJDIR)/parsdate.c
  307 	@SHOW_CC@
  308 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(OBJDIR)/parsdate.c
  309 
  310 $(OBJDIR)/parsdate.c : $(SRCDIR)/parsdate.y
  311 	@$(ECHO) "expect 6 shift/reduce conflicts ..."
  312 	$(YACC) $(SRCDIR)/parsdate.y
  313 	$(MV) -f y.tab.c $(OBJDIR)/parsdate.c
  314 
  315 $(BINDIR)/$(EXE) : $(OFILES) $(EXTRALIBS)
  316 	@$(ECHO) "Linking $(EXE) v$(VER) ..."
  317 	$(CC) $(LDFLAGS) -o $(BINDIR)/$(EXE) $(OFILES) $(LINK_LIBS)
  318 	@$(LS) -l $(BINDIR)/$(EXE)
  319 
  320 help :
  321 	@$(ECHO) "This Makefile offers the following options:"
  322 	@$(ECHO) " "
  323 	@$(ECHO) "    make [all]                 [ Build the binary for your OS ]"
  324 	@$(ECHO) "    make [un]install           [ [Un]install the binaries & manual pages ]"
  325 	@$(ECHO) "      make [un]install_helpers [ [Un]install helper applications ]"
  326 	@$(ECHO) "      make [un]install_manpage [ [Un]install the manual pages ]"
  327 	@$(ECHO) "      make [un]install_nls     [ [Un]install native language files ]"
  328 	@$(ECHO) "      make [un]install_nls_man [ [Un]install native language manual pages ]"
  329 	@$(ECHO) "    make [un]install_sysdefs   [ [Un]install the system-wide defaults file ]"
  330 	@$(ECHO) "    make clean                 [ Delete all object files ]"
  331 	@$(ECHO) "    make help                  [ Show this text ]"
  332 	@$(ECHO) " "
  333 
  334 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) \
  335 $(DESTDIR)$(INS_MANUAL_DIR)5 \
  336 $(DESTDIR)$(INS_BINARY_DIR) \
  337 $(DESTDIR)$(INS_SYSDEF_DIR) :
  338 	mkdir -p $@
  339 
  340 install_manpage : $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) $(DESTDIR)$(INS_MANUAL_DIR)5
  341 	@$(ECHO) "Installing $(PROJECT) manual pages to $(DESTDIR)$(INS_MANUAL_DIR) ..."
  342 	@$(INSTALL) -m 444 $(DOCDIR)/tin.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
  343 	@( $(CD) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) && $(RM) -f r$(PROJECT).$(INS_MANUAL_EXT) && $(LN) $(PROJECT).$(INS_MANUAL_EXT) r$(PROJECT).$(INS_MANUAL_EXT) )
  344 	@$(INSTALL) -m 444 $(DOCDIR)/tin.5 $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
  345 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  346 	@$(ECHO) ".so $(INS_MANUAL_DIR)5/$(PROJECT).5" > $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  347 	@$(CHMOD) 444 $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  348 	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mbox.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 - file already exists" ; fi
  349 	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mmdf.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 - file already exists" ; fi
  350 
  351 uninstall_manpage :
  352 	@$(ECHO) "Uninstalling $(PROJECT) manual page in $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) ..."
  353 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
  354 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/r$(PROJECT).$(INS_MANUAL_EXT)
  355 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
  356 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5
  357 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5
  358 
  359 install_nls_man :
  360 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  361 		for lang in $(MAN_LINGUAS) ; do \
  362 			if test -e $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} ; then \
  363 				$(INSTALL) -D -m 444 $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  364 			fi; \
  365 		done; \
  366 	done
  367 
  368 uninstall_nls_man :
  369 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  370 		for lang in $(MAN_LINGUAS) ; do \
  371 			$(RM) -f $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  372 		done; \
  373 	done
  374 
  375 install_sysdefs : $(DESTDIR)$(INS_SYSDEF_DIR)
  376 	@$(ECHO) "Installing system-wide defaults to $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  377 	@-if test -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults ; then $(ECHO) "  ... backing up existing tin.defaults file to tin.defaults.$(INS_OLD_SUFFIX)" ; $(MV) -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults.$(INS_OLD_SUFFIX) ; fi
  378 	@-if test -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types ; then $(ECHO) "  ... backing up existing mime.types file to mime.types.$(INS_OLD_SUFFIX)" ; $(MV) -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types.$(INS_OLD_SUFFIX) ; fi
  379 	@$(INSTALL) -m 644 $(DOCDIR)/tin.defaults $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  380 	@$(INSTALL) -m 644 $(DOCDIR)/mime.types $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  381 
  382 uninstall_sysdefs :
  383 	@$(ECHO) "Uninstalling system-wide defaults in $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  384 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  385 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  386 
  387 install_helpers : $(DESTDIR)$(INS_BINARY_DIR) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)
  388 	@$(ECHO) "Installing helper applications ..."
  389 	@-if test ! -f $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; then $(INSTALL) -m 755 $(TOLDIR)/metamutt $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; fi
  390 	@$(INSTALL) -m 755 $(TOLDIR)/w2r.pl $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  391 	@$(INSTALL) -m 755 $(TOLDIR)/opt-case.pl $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  392 	@$(INSTALL) -m 755 $(TOLDIR)/tinews.pl $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  393 	@$(INSTALL) -m 755 $(TOLDIR)/url_handler.pl $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  394 	@$(INSTALL) -m 444 $(DOCDIR)/w2r.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  395 	@$(INSTALL) -m 444 $(DOCDIR)/opt-case.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  396 	@$(INSTALL) -m 444 $(DOCDIR)/tinews.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  397 	@$(INSTALL) -m 444 $(DOCDIR)/url_handler.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  398 
  399 uninstall_helpers :
  400 	@$(ECHO) "Removing helper applications ..."
  401 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  402 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  403 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  404 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  405 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  406 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  407 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  408 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  409 
  410 install : $(DESTDIR)$(INS_BINARY_DIR)
  411 	@$(MAKE) all
  412 	@$(ECHO) "Installing $(EXE) v$(VER) to $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE) ..."
  413 	@$(INSTALL) $(BINDIR)/$(EXE) $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  414 	@( $(CD) $(DESTDIR)$(INS_BINARY_DIR) && $(RM) -f r$(PROJEXE) && $(LN) $(PROJEXE) r$(PROJEXE) )
  415 	@$(MAKE) install_helpers
  416 	@$(MAKE) install_manpage
  417 @MSG_DIR_MAKE@	@$(MAKE) install_nls
  418 
  419 uninstall :
  420 	@$(ECHO) "Uninstalling $(PROJEXE) in $(DESTDIR)$(INS_BINARY_DIR) ..."
  421 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  422 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/r$(PROJEXE)
  423 	@$(MAKE) uninstall_helpers
  424 	@$(MAKE) uninstall_manpage
  425 @MSG_DIR_MAKE@	@$(MAKE) uninstall_nls
  426 
  427 install_nls :
  428 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Installing NLS-files" ; $(CD) ../po/ && $(MAKE) install ; fi
  429 
  430 uninstall_nls :
  431 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Uninstalling NLS-files" ; $(CD) ../po/ && $(MAKE) uninstall ; fi
  432 
  433 tags :
  434 	@$(ECHO) "Generating tags (results in ./tags) ..."
  435 	@-$(RM) -f tags
  436 	@$(TAGS) $(HFILES) $(CFILES)
  437 
  438 TAGS :
  439 	@$(ECHO) "Generating emacs tags (results in ./TAGS) ..."
  440 	@-$(RM) -f TAGS
  441 	@$(ETAGS) $(HFILES) $(CFILES)
  442 
  443 lint :	$(CFILES) $(OBJDIR)/parsdate.c tincfg.h options_menu.h
  444 	@$(ECHO) "Linting source (results in ./LINT) ..."
  445 	@$(LINT) $(LINTFLAGS) `$(ECHO) $(CFILES)|$(SED) -e 's/\.y/.c/'` $(LIBS) 1>LINT 2>&1
  446 
  447 clean :
  448 	@$(ECHO) "Cleaning ..."
  449 	@-$(RM) -f $(OFILES)
  450 	@-$(RM) -f $(OBJDIR)/parsdate.c
  451 	@-$(RM) -f LINT *.ln *.out trace
  452 	@-$(RM) -f makecfg$X makecfg$o tincfg.h options_menu.h
  453 	@-$(RM) -rf makecfg.dSYM
  454 	@-$(RM) -f core *~
  455 	@-$(RM) -f $(EXE)
  456 @PCREDIR_MAKE@	@-if test -r ../pcre/Makefile ; then $(CD) ../pcre && $(ECHO) "Cleaning Philip Hazel's Perl-compatible regular expressions library ..." && $(MAKE) @cf_cv_makeflags@ clean ; fi
  457 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(CD) ../po && $(MAKE) @cf_cv_makeflags@ $@ ; fi
  458 @INTLDIR_MAKE@	@-if test -r ../intl/Makefile ; then $(CD) ../intl && $(MAKE) @cf_cv_makeflags@ $@ ; fi
  459 
  460 laundry \
  461 dirty :
  462 	@$(ECHO) "I'm sorry, this is not supported yet ..."
  463 
  464 distclean \
  465 clobber :: clean
  466 	@$(ECHO) "Clobbering ..."
  467 	@-$(RM) -f $(OFILES) $(BINDIR)/$(EXE) tags TAGS LINT cflow.$(PACKAGE)
  468 
  469 distclean ::
  470 @INTLDIR_MAKE@	@-$(CD) ../intl && $(MAKE) @cf_cv_makeflags@ $@
  471 @MSG_DIR_MAKE@	@-$(CD) ../po && $(MAKE) @cf_cv_makeflags@ clean
  472 
  473 cflow :
  474 	@$(ECHO) "Creating cflow for $(PACKAGE) ..."
  475 @PCREDIR_MAKE@	@$(CFLOW) -I$(INCDIR) -I$(SRCDIR) -I../pcre $(CFILES) > cflow.$(PACKAGE)
  476 
  477 cscope :
  478 	@$(ECHO) "Creating cscope database $(PACKAGE) ..."
  479 	@$(CSCOPE) $(ALL_FILES)
  480 
  481 @PCREDIR_MAKE@../pcre/pcre.h ../pcre/$(PRELIB)pcre.a :
  482 @PCREDIR_MAKE@	@$(ECHO) "Building Philip Hazel's Perl regular expressions library ..."
  483 @PCREDIR_MAKE@	@$(CD) ../pcre && $(MAKE) @cf_cv_makeflags@ $(PRELIB)pcre.a
  484 
  485 @INTLDIR_MAKE@@INTLLIBS@ :
  486 @INTLDIR_MAKE@	@$(ECHO) "Building GNU gettext library ..."
  487 @INTLDIR_MAKE@	@$(CD) ../intl && $(MAKE) @cf_cv_makeflags@
  488 
  489 @CANDIR_MAKE@../libcanlock/$(PRELIB)canlock.a :
  490 @CANDIR_MAKE@	@$(ECHO) "Building Cancel-Lock library ..."
  491 @CANDIR_MAKE@	@$(CD) ../libcanlock && $(MAKE) @cf_cv_makeflags@ lib
  492 
  493 options_menu.h :		$(SRCDIR)/tincfg.tbl \
  494 				makecfg$X
  495 	./makecfg $(SRCDIR)/tincfg.tbl tincfg.h
  496 
  497 tincfg.h :			$(SRCDIR)/tincfg.tbl \
  498 				makecfg$X
  499 	./makecfg $(SRCDIR)/tincfg.tbl $@
  500 
  501 makecfg$X :			$(SRCDIR)/makecfg.c \
  502 				Makefile \
  503 				$(INCDIR)/tin.h \
  504 				../include/autoconf.h
  505 	@SHOW_CC@
  506 	@ECHO_CC@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -o $@ $(SRCDIR)/makecfg.c
  507 
  508 TIN_DEP	= \
  509 	Makefile \
  510 	options_menu.h \
  511 	$(INCDIR)/tin.h \
  512 	$(INCDIR)/tinrc.h \
  513 	../include/autoconf.h \
  514 	$(INCDIR)/bool.h \
  515 	$(INCDIR)/debug.h \
  516 	$(INCDIR)/extern.h \
  517 	$(INCDIR)/nntplib.h \
  518 	$(INCDIR)/tcurses.h \
  519 	$(INCDIR)/proto.h $(EXTRA_PCREHDRS) $(EXTRA_INTLLIBS)
  520 
  521 $(OBJDIR)/active$o :		$(SRCDIR)/active.c $(TIN_DEP)
  522 $(OBJDIR)/art$o :		$(SRCDIR)/art.c $(TIN_DEP) \
  523 				$(INCDIR)/newsrc.h \
  524 				$(INCDIR)/stpwatch.h
  525 $(OBJDIR)/attrib$o :		$(SRCDIR)/attrib.c $(TIN_DEP) \
  526 				$(INCDIR)/version.h
  527 $(OBJDIR)/auth$o :		$(SRCDIR)/auth.c $(TIN_DEP)
  528 $(OBJDIR)/charset$o :		$(SRCDIR)/charset.c $(TIN_DEP)
  529 $(OBJDIR)/color$o :		$(SRCDIR)/color.c $(TIN_DEP)
  530 $(OBJDIR)/config$o :		$(SRCDIR)/config.c $(TIN_DEP) \
  531 				$(INCDIR)/tnntp.h \
  532 				$(INCDIR)/version.h
  533 $(OBJDIR)/cook$o :		$(SRCDIR)/cook.c $(TIN_DEP) \
  534 				$(INCDIR)/rfc2046.h
  535 $(OBJDIR)/curses$o :		$(SRCDIR)/curses.c $(TIN_DEP) \
  536 				$(INCDIR)/missing_fd.h \
  537 				$(INCDIR)/tnntp.h
  538 $(OBJDIR)/debug$o :		$(SRCDIR)/debug.c $(TIN_DEP) \
  539 				$(INCDIR)/newsrc.h
  540 $(OBJDIR)/envarg$o :		$(SRCDIR)/envarg.c $(TIN_DEP)
  541 $(OBJDIR)/feed$o :		$(SRCDIR)/feed.c $(TIN_DEP) \
  542 				$(INCDIR)/keymap.h \
  543 				$(INCDIR)/rfc2046.h
  544 $(OBJDIR)/filter$o :		$(SRCDIR)/filter.c $(TIN_DEP) \
  545 				$(INCDIR)/keymap.h \
  546 				$(INCDIR)/version.h
  547 $(OBJDIR)/getline$o :		$(SRCDIR)/getline.c $(TIN_DEP)
  548 $(OBJDIR)/global$o :		$(SRCDIR)/global.c $(TIN_DEP) \
  549 				$(INCDIR)/keymap.h
  550 $(OBJDIR)/group$o :		$(SRCDIR)/group.c $(TIN_DEP) \
  551 				$(INCDIR)/keymap.h
  552 $(OBJDIR)/hashstr$o :		$(SRCDIR)/hashstr.c $(TIN_DEP)
  553 $(OBJDIR)/header$o :		$(SRCDIR)/header.c $(TIN_DEP) \
  554 				$(INCDIR)/tnntp.h
  555 $(OBJDIR)/help$o :		$(SRCDIR)/help.c $(TIN_DEP) \
  556 				$(INCDIR)/keymap.h
  557 $(OBJDIR)/inews$o :		$(SRCDIR)/inews.c $(TIN_DEP) \
  558 				$(INCDIR)/tnntp.h
  559 $(OBJDIR)/init$o :		$(SRCDIR)/init.c $(TIN_DEP) \
  560 				$(INCDIR)/bugrep.h \
  561 				$(INCDIR)/keymap.h \
  562 				$(INCDIR)/tnntp.h \
  563 				$(INCDIR)/version.h
  564 $(OBJDIR)/joinpath$o :		$(SRCDIR)/joinpath.c $(TIN_DEP)
  565 $(OBJDIR)/keymap$o :		$(SRCDIR)/keymap.c $(TIN_DEP) \
  566 				$(INCDIR)/keymap.h \
  567 				$(INCDIR)/version.h
  568 $(OBJDIR)/lang$o :		$(SRCDIR)/lang.c $(TIN_DEP)
  569 $(OBJDIR)/langinfo$o :		$(SRCDIR)/langinfo.c $(TIN_DEP)
  570 $(OBJDIR)/list$o :		$(SRCDIR)/list.c $(TIN_DEP)
  571 $(OBJDIR)/lock$o :		$(SRCDIR)/lock.c $(TIN_DEP)
  572 $(OBJDIR)/mail$o :		$(SRCDIR)/mail.c $(TIN_DEP)
  573 $(OBJDIR)/main$o :		$(SRCDIR)/main.c $(TIN_DEP) \
  574 				$(INCDIR)/version.h
  575 $(OBJDIR)/memory$o :		$(SRCDIR)/memory.c $(TIN_DEP) \
  576 				$(INCDIR)/rfc2046.h
  577 $(OBJDIR)/mimetypes$o :		$(SRCDIR)/mimetypes.c $(TIN_DEP)
  578 $(OBJDIR)/misc$o :		$(SRCDIR)/misc.c $(TIN_DEP) \
  579 				$(INCDIR)/policy.h \
  580 				$(INCDIR)/rfc2046.h \
  581 				$(INCDIR)/version.h
  582 $(OBJDIR)/my_tmpfile$o :	$(SRCDIR)/my_tmpfile.c $(TIN_DEP)
  583 $(OBJDIR)/newsrc$o :		$(SRCDIR)/newsrc.c $(TIN_DEP) \
  584 				$(INCDIR)/newsrc.h \
  585 				$(INCDIR)/tnntp.h
  586 $(OBJDIR)/nntplib$o :		$(SRCDIR)/nntplib.c $(TIN_DEP) \
  587 				$(INCDIR)/tnntp.h
  588 $(OBJDIR)/nrctbl$o :		$(SRCDIR)/nrctbl.c $(TIN_DEP) \
  589 				$(INCDIR)/keymap.h \
  590 				$(INCDIR)/version.h
  591 $(OBJDIR)/options_menu$o :	$(SRCDIR)/options_menu.c $(TIN_DEP) \
  592 				tincfg.h \
  593 				$(INCDIR)/keymap.h
  594 $(OBJDIR)/page$o :		$(SRCDIR)/page.c $(TIN_DEP) \
  595 				$(INCDIR)/keymap.h \
  596 				$(INCDIR)/rfc2046.h
  597 $(OBJDIR)/parsdate$o :		$(OBJDIR)/parsdate.y $(TIN_DEP)
  598 $(OBJDIR)/pgp$o :		$(SRCDIR)/pgp.c $(TIN_DEP) \
  599 				$(INCDIR)/keymap.h
  600 $(OBJDIR)/plp_snprintf$o :	$(SRCDIR)/plp_snprintf.c $(TIN_DEP) \
  601 				$(INCDIR)/plp_snprintf.h
  602 $(OBJDIR)/post$o :		$(SRCDIR)/post.c $(TIN_DEP) \
  603 				$(INCDIR)/keymap.h \
  604 				$(INCDIR)/rfc2046.h \
  605 				$(INCDIR)/version.h
  606 $(OBJDIR)/prompt$o :		$(SRCDIR)/prompt.c $(TIN_DEP) \
  607 				$(INCDIR)/keymap.h
  608 $(OBJDIR)/read$o :		$(SRCDIR)/read.c $(TIN_DEP) \
  609 				$(INCDIR)/missing_fd.h \
  610 				$(INCDIR)/keymap.h \
  611 				$(INCDIR)/tnntp.h
  612 $(OBJDIR)/refs$o :		$(SRCDIR)/refs.c $(TIN_DEP)
  613 $(OBJDIR)/regex$o :		$(SRCDIR)/regex.c $(TIN_DEP)
  614 $(OBJDIR)/rfc1524$o :		$(SRCDIR)/rfc1524.c $(TIN_DEP) \
  615 				$(INCDIR)/rfc2046.h
  616 $(OBJDIR)/rfc2045$o :		$(SRCDIR)/rfc2045.c $(TIN_DEP)
  617 $(OBJDIR)/rfc2046$o :		$(SRCDIR)/rfc2046.c $(TIN_DEP) \
  618 				$(INCDIR)/rfc2046.h
  619 $(OBJDIR)/rfc2047$o :		$(SRCDIR)/rfc2047.c $(TIN_DEP) \
  620 				$(INCDIR)/rfc2046.h
  621 $(OBJDIR)/save$o :		$(SRCDIR)/save.c $(TIN_DEP) \
  622 				$(INCDIR)/keymap.h \
  623 				$(INCDIR)/rfc2046.h
  624 $(OBJDIR)/screen$o :		$(SRCDIR)/screen.c $(TIN_DEP)
  625 $(OBJDIR)/search$o :		$(SRCDIR)/search.c $(TIN_DEP) \
  626 				$(INCDIR)/keymap.h
  627 $(OBJDIR)/select$o :		$(SRCDIR)/select.c $(TIN_DEP) \
  628 				$(INCDIR)/keymap.h
  629 $(OBJDIR)/sigfile$o :		$(SRCDIR)/sigfile.c $(TIN_DEP)
  630 $(OBJDIR)/signal$o :		$(SRCDIR)/signal.c $(TIN_DEP) \
  631 				$(INCDIR)/version.h
  632 $(OBJDIR)/strftime$o :		$(SRCDIR)/strftime.c $(TIN_DEP)
  633 $(OBJDIR)/string$o :		$(SRCDIR)/string.c $(TIN_DEP)
  634 $(OBJDIR)/tags$o :		$(SRCDIR)/tags.c $(TIN_DEP)
  635 $(OBJDIR)/tcurses$o :		$(SRCDIR)/tcurses.c $(TIN_DEP)
  636 $(OBJDIR)/thread$o :		$(SRCDIR)/thread.c $(TIN_DEP) \
  637 				$(INCDIR)/keymap.h
  638 $(OBJDIR)/tmpfile$o :		$(SRCDIR)/tmpfile.c $(TIN_DEP)
  639 $(OBJDIR)/version$o :		$(SRCDIR)/version.c $(TIN_DEP) \
  640 				$(INCDIR)/keymap.h \
  641 				$(INCDIR)/version.h
  642 $(OBJDIR)/wildmat$o :		$(SRCDIR)/wildmat.c $(TIN_DEP)
  643 $(OBJDIR)/xface$o :		$(SRCDIR)/xface.c $(TIN_DEP)
  644 $(OBJDIR)/xref$o :		$(SRCDIR)/xref.c $(TIN_DEP) \
  645 				$(INCDIR)/newsrc.h
  646 @EXTRAO_DEP@$(EXTRAOBJS) :	$(TIN_DEP)