"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.6.1/src/Makefile.in" (22 Dec 2021, 22548 Bytes) of package /linux/misc/tin-2.6.1.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.6.0_vs_2.6.1.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 # Source Makefile for tin
    2 # - for configuration options read the ../doc/INSTALL file.
    3 #
    4 # Updated: 2020-12-14
    5 #
    6 # Copyright (c) 1995-2022 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 REMAKE		= $(MAKE) @cf_cv_makeflags@ DESTDIR="$(DESTDIR)"
   92 
   93 
   94 MAN_LINGUAS = de en_GB es
   95 
   96 # Project
   97 PROJECT	= `echo @PACKAGE@|sed '@program_transform_name@'`
   98 PROJEXE = $(PROJECT)$x
   99 EXE	= @PACKAGE@$x
  100 VER	= @VERSION@
  101 
  102 # directory structure
  103 DOCDIR	= $(top_srcdir)/doc
  104 INCDIR	= $(top_srcdir)/include
  105 BINDIR	= .
  106 OBJDIR	= .
  107 SRCDIR	= $(srcdir)
  108 TOLDIR	= $(top_srcdir)/tools
  109 
  110 # standard commands
  111 CD	= cd
  112 CHMOD	= chmod
  113 CP	= cp
  114 ECHO	= echo
  115 LS	= ls
  116 MV	= mv
  117 RM	= rm
  118 SED	= sed
  119 CFLOW	= cflow
  120 CSCOPE	= cscope
  121 TAGS	= ctags
  122 ETAGS	= etags
  123 LINT	= @LINT@
  124 LN	= @LN_S@
  125 INSTALL	= @INSTALL@
  126 @SET_MAKE@
  127 
  128 HFILES	= \
  129 	../include/autoconf.h \
  130 	$(INCDIR)/bool.h \
  131 	$(INCDIR)/bugrep.h \
  132 	$(INCDIR)/debug.h \
  133 	$(INCDIR)/extern.h \
  134 	$(INCDIR)/keymap.h \
  135 	$(INCDIR)/newsrc.h \
  136 	$(INCDIR)/nntplib.h \
  137 	$(INCDIR)/plp_snprintf.h \
  138 	$(INCDIR)/policy.h \
  139 	$(INCDIR)/proto.h \
  140 	$(INCDIR)/rfc2046.h \
  141 	$(INCDIR)/stpwatch.h \
  142 	$(INCDIR)/tin.h \
  143 	$(INCDIR)/tinrc.h \
  144 	$(INCDIR)/tnntp.h \
  145 	$(INCDIR)/version.h
  146 
  147 CFILES	= \
  148 	$(SRCDIR)/active.c \
  149 	$(SRCDIR)/art.c \
  150 	$(SRCDIR)/attrib.c \
  151 	$(SRCDIR)/auth.c \
  152 	$(SRCDIR)/charset.c \
  153 	$(SRCDIR)/color.c \
  154 	$(SRCDIR)/config.c \
  155 	$(SRCDIR)/cook.c \
  156 	$(SRCDIR)/curses.c \
  157 	$(SRCDIR)/debug.c \
  158 	$(SRCDIR)/envarg.c \
  159 	$(SRCDIR)/feed.c \
  160 	$(SRCDIR)/filter.c \
  161 	$(SRCDIR)/getline.c \
  162 	$(SRCDIR)/global.c \
  163 	$(SRCDIR)/group.c \
  164 	$(SRCDIR)/hashstr.c \
  165 	$(SRCDIR)/header.c \
  166 	$(SRCDIR)/help.c \
  167 	$(SRCDIR)/inews.c \
  168 	$(SRCDIR)/init.c \
  169 	$(SRCDIR)/joinpath.c \
  170 	$(SRCDIR)/keymap.c \
  171 	$(SRCDIR)/lang.c \
  172 	$(SRCDIR)/langinfo.c \
  173 	$(SRCDIR)/list.c \
  174 	$(SRCDIR)/lock.c \
  175 	$(SRCDIR)/mail.c \
  176 	$(SRCDIR)/main.c \
  177 	$(SRCDIR)/memory.c \
  178 	$(SRCDIR)/mimetypes.c \
  179 	$(SRCDIR)/misc.c \
  180 	$(SRCDIR)/my_tmpfile.c \
  181 	$(SRCDIR)/newsrc.c \
  182 	$(SRCDIR)/nntplib.c \
  183 	$(SRCDIR)/nrctbl.c \
  184 	$(SRCDIR)/options_menu.c \
  185 	$(SRCDIR)/page.c \
  186 	$(SRCDIR)/parsdate.y \
  187 	$(SRCDIR)/pgp.c \
  188 	$(SRCDIR)/plp_snprintf.c \
  189 	$(SRCDIR)/post.c \
  190 	$(SRCDIR)/prompt.c \
  191 	$(SRCDIR)/read.c \
  192 	$(SRCDIR)/refs.c \
  193 	$(SRCDIR)/regex.c \
  194 	$(SRCDIR)/rfc1524.c \
  195 	$(SRCDIR)/rfc2045.c \
  196 	$(SRCDIR)/rfc2046.c \
  197 	$(SRCDIR)/rfc2047.c \
  198 	$(SRCDIR)/save.c \
  199 	$(SRCDIR)/screen.c \
  200 	$(SRCDIR)/search.c \
  201 	$(SRCDIR)/select.c \
  202 	$(SRCDIR)/sigfile.c \
  203 	$(SRCDIR)/signal.c \
  204 	$(SRCDIR)/strftime.c \
  205 	$(SRCDIR)/string.c \
  206 	$(SRCDIR)/tags.c \
  207 	$(SRCDIR)/tcurses.c \
  208 	$(SRCDIR)/tmpfile.c \
  209 	$(SRCDIR)/thread.c \
  210 	$(SRCDIR)/version.c \
  211 	$(SRCDIR)/wildmat.c \
  212 	$(SRCDIR)/xref.c
  213 
  214 EXTRAOBJS = @EXTRAOBJS@
  215 
  216 EXTRA_INTLLIBS = @INTLDIR_MAKE@ @INTLLIBS@
  217 EXTRA_PCREHDRS = @PCREDIR_MAKE@ ../pcre/pcre.h
  218 EXTRA_PCRELIBS = @PCREDIR_MAKE@ ../pcre/$(PRELIB)pcre.a
  219 EXTRA_CANLIBS = @CANDIR_MAKE@ ../libcanlock/$(PRELIB)canlock.a
  220 EXTRALIBS = $(EXTRA_INTLLIBS) $(EXTRA_PCRELIBS) $(EXTRA_CANLIBS)
  221 
  222 OFILES	= @ALLOCA@ $(EXTRAOBJS) \
  223 	$(OBJDIR)/active$o \
  224 	$(OBJDIR)/art$o \
  225 	$(OBJDIR)/attrib$o \
  226 	$(OBJDIR)/auth$o \
  227 	$(OBJDIR)/charset$o \
  228 	$(OBJDIR)/color$o \
  229 	$(OBJDIR)/config$o \
  230 	$(OBJDIR)/cook$o \
  231 	$(OBJDIR)/curses$o \
  232 	$(OBJDIR)/debug$o \
  233 	$(OBJDIR)/envarg$o \
  234 	$(OBJDIR)/feed$o \
  235 	$(OBJDIR)/filter$o \
  236 	$(OBJDIR)/getline$o \
  237 	$(OBJDIR)/global$o \
  238 	$(OBJDIR)/group$o \
  239 	$(OBJDIR)/hashstr$o \
  240 	$(OBJDIR)/header$o \
  241 	$(OBJDIR)/help$o \
  242 	$(OBJDIR)/inews$o \
  243 	$(OBJDIR)/init$o \
  244 	$(OBJDIR)/joinpath$o \
  245 	$(OBJDIR)/keymap$o \
  246 	$(OBJDIR)/lang$o \
  247 	$(OBJDIR)/langinfo$o \
  248 	$(OBJDIR)/list$o \
  249 	$(OBJDIR)/lock$o \
  250 	$(OBJDIR)/mail$o \
  251 	$(OBJDIR)/main$o \
  252 	$(OBJDIR)/memory$o \
  253 	$(OBJDIR)/mimetypes$o \
  254 	$(OBJDIR)/misc$o \
  255 	$(OBJDIR)/my_tmpfile$o \
  256 	$(OBJDIR)/newsrc$o \
  257 	$(OBJDIR)/nntplib$o \
  258 	$(OBJDIR)/nrctbl$o \
  259 	$(OBJDIR)/options_menu$o \
  260 	$(OBJDIR)/page$o \
  261 	$(OBJDIR)/parsdate$o \
  262 	$(OBJDIR)/pgp$o \
  263 	$(OBJDIR)/plp_snprintf$o \
  264 	$(OBJDIR)/post$o \
  265 	$(OBJDIR)/prompt$o \
  266 	$(OBJDIR)/read$o \
  267 	$(OBJDIR)/refs$o \
  268 	$(OBJDIR)/regex$o \
  269 	$(OBJDIR)/rfc1524$o \
  270 	$(OBJDIR)/rfc2045$o \
  271 	$(OBJDIR)/rfc2046$o \
  272 	$(OBJDIR)/rfc2047$o \
  273 	$(OBJDIR)/save$o \
  274 	$(OBJDIR)/screen$o \
  275 	$(OBJDIR)/search$o \
  276 	$(OBJDIR)/select$o \
  277 	$(OBJDIR)/sigfile$o \
  278 	$(OBJDIR)/signal$o \
  279 	$(OBJDIR)/strftime$o \
  280 	$(OBJDIR)/string$o \
  281 	$(OBJDIR)/tags$o \
  282 	$(OBJDIR)/tcurses$o \
  283 	$(OBJDIR)/tmpfile$o \
  284 	$(OBJDIR)/thread$o \
  285 	$(OBJDIR)/version$o \
  286 	$(OBJDIR)/wildmat$o \
  287 	$(OBJDIR)/xref$o
  288 
  289 ALL_FILES = $(HFILES) $(CFILES)
  290 
  291 LINTFLAGS = @LINTFLAGS@ $(CPPFLAGS)
  292 
  293 all : $(BINDIR)/$(EXE)
  294 
  295 .SUFFIXES : .i
  296 
  297 .c$o :
  298 	@SHOW_CC@
  299 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/$*.c
  300 
  301 .c.i :
  302 	@SHOW_CC@
  303 	@ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
  304 
  305 # explicit rules to allow running lint, and to accommodate older 'make' programs
  306 $(OBJDIR)/parsdate$o : $(SRCDIR)/parsdate.y
  307 	@$(ECHO) "expect 6 shift/reduce conflicts ..."
  308 	$(YACC) $(SRCDIR)/parsdate.y
  309 	$(MV) -f y.tab.c $(OBJDIR)/parsdate.c
  310 	@SHOW_CC@
  311 	@ECHO_CC@$(CC) $(CPPFLAGS) $(CFLAGS) -c $(OBJDIR)/parsdate.c
  312 
  313 $(OBJDIR)/parsdate.c : $(SRCDIR)/parsdate.y
  314 	@$(ECHO) "expect 6 shift/reduce conflicts ..."
  315 	$(YACC) $(SRCDIR)/parsdate.y
  316 	$(MV) -f y.tab.c $(OBJDIR)/parsdate.c
  317 
  318 $(BINDIR)/$(EXE) : $(OFILES) $(EXTRALIBS)
  319 	@$(ECHO) "Linking $(EXE) v$(VER) ..."
  320 	$(CC) $(LDFLAGS) -o $(BINDIR)/$(EXE) $(OFILES) $(LINK_LIBS)
  321 	@$(LS) -l $(BINDIR)/$(EXE)
  322 
  323 help :
  324 	@$(ECHO) "This Makefile offers the following options:"
  325 	@$(ECHO) " "
  326 	@$(ECHO) "    make [all]                 [ Build the binary for your OS ]"
  327 	@$(ECHO) "    make [un]install           [ [Un]install the binaries & manual pages ]"
  328 	@$(ECHO) "      make [un]install_helpers [ [Un]install helper applications ]"
  329 	@$(ECHO) "      make [un]install_manpage [ [Un]install the manual pages ]"
  330 	@$(ECHO) "      make [un]install_nls     [ [Un]install native language files ]"
  331 	@$(ECHO) "      make [un]install_nls_man [ [Un]install native language manual pages ]"
  332 	@$(ECHO) "    make [un]install_sysdefs   [ [Un]install the system-wide defaults file ]"
  333 	@$(ECHO) "    make clean                 [ Delete all object files ]"
  334 	@$(ECHO) "    make help                  [ Show this text ]"
  335 	@$(ECHO) " "
  336 
  337 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) \
  338 $(DESTDIR)$(INS_MANUAL_DIR)5 \
  339 $(DESTDIR)$(INS_BINARY_DIR) \
  340 $(DESTDIR)$(INS_SYSDEF_DIR) :
  341 	mkdir -p $@
  342 
  343 install_manpage : $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) $(DESTDIR)$(INS_MANUAL_DIR)5
  344 	@$(ECHO) "Installing $(PROJECT) manual pages to $(DESTDIR)$(INS_MANUAL_DIR) ..."
  345 	@$(INSTALL) -m 444 $(DOCDIR)/tin.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
  346 	@( $(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) )
  347 	@$(INSTALL) -m 444 $(DOCDIR)/tin.5 $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
  348 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  349 	@$(ECHO) ".so $(INS_MANUAL_DIR)5/$(PROJECT).5" > $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  350 	@$(CHMOD) 444 $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
  351 	@-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
  352 	@-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
  353 
  354 uninstall_manpage :
  355 	@$(ECHO) "Uninstalling $(PROJECT) manual page in $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) ..."
  356 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
  357 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/r$(PROJECT).$(INS_MANUAL_EXT)
  358 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
  359 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5
  360 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5
  361 
  362 install_nls_man :
  363 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  364 		for lang in $(MAN_LINGUAS) ; do \
  365 			if test -e $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} ; then \
  366 				$(INSTALL) -D -m 444 $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  367 			fi; \
  368 		done; \
  369 	done
  370 
  371 uninstall_nls_man :
  372 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  373 		for lang in $(MAN_LINGUAS) ; do \
  374 			$(RM) -f $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  375 		done; \
  376 	done
  377 
  378 install_sysdefs : $(DESTDIR)$(INS_SYSDEF_DIR)
  379 	@$(ECHO) "Installing system-wide defaults to $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  380 	@-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
  381 	@-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
  382 	@$(INSTALL) -m 644 $(DOCDIR)/tin.defaults $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  383 	@$(INSTALL) -m 644 $(DOCDIR)/mime.types $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  384 
  385 uninstall_sysdefs :
  386 	@$(ECHO) "Uninstalling system-wide defaults in $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  387 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  388 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  389 
  390 install_helpers : $(DESTDIR)$(INS_BINARY_DIR) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)
  391 	@$(ECHO) "Installing helper applications ..."
  392 	@-if test ! -f $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; then $(INSTALL) -m 755 $(TOLDIR)/metamutt $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; fi
  393 	@$(INSTALL) -m 755 $(TOLDIR)/w2r.pl $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  394 	@$(INSTALL) -m 755 $(TOLDIR)/opt-case.pl $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  395 	@$(INSTALL) -m 755 $(TOLDIR)/tinews.pl $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  396 	@$(INSTALL) -m 755 $(TOLDIR)/url_handler.pl $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  397 	@$(INSTALL) -m 444 $(DOCDIR)/w2r.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  398 	@$(INSTALL) -m 444 $(DOCDIR)/opt-case.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  399 	@$(INSTALL) -m 444 $(DOCDIR)/tinews.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  400 	@$(INSTALL) -m 444 $(DOCDIR)/url_handler.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  401 
  402 uninstall_helpers :
  403 	@$(ECHO) "Removing helper applications ..."
  404 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  405 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  406 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  407 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  408 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  409 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  410 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  411 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  412 
  413 install : $(DESTDIR)$(INS_BINARY_DIR)
  414 	@$(REMAKE) all
  415 	@$(ECHO) "Installing $(EXE) v$(VER) to $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE) ..."
  416 	@$(INSTALL) $(BINDIR)/$(EXE) $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  417 	@( $(CD) $(DESTDIR)$(INS_BINARY_DIR) && $(RM) -f r$(PROJEXE) && $(LN) $(PROJEXE) r$(PROJEXE) )
  418 	@$(REMAKE) install_helpers
  419 	@$(REMAKE) install_manpage
  420 @MSG_DIR_MAKE@	@$(REMAKE) install_nls
  421 
  422 uninstall :
  423 	@$(ECHO) "Uninstalling $(PROJEXE) in $(DESTDIR)$(INS_BINARY_DIR) ..."
  424 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  425 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/r$(PROJEXE)
  426 	@$(REMAKE) uninstall_helpers
  427 	@$(REMAKE) uninstall_manpage
  428 @MSG_DIR_MAKE@	@$(REMAKE) uninstall_nls
  429 
  430 install_nls :
  431 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Installing NLS-files" ; $(CD) ../po/ && $(REMAKE) install ; fi
  432 
  433 uninstall_nls :
  434 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Uninstalling NLS-files" ; $(CD) ../po/ && $(REMAKE) uninstall ; fi
  435 
  436 tags :
  437 	@$(ECHO) "Generating tags (results in ./tags) ..."
  438 	@-$(RM) -f tags
  439 	@$(TAGS) $(HFILES) $(CFILES)
  440 
  441 TAGS :
  442 	@$(ECHO) "Generating emacs tags (results in ./TAGS) ..."
  443 	@-$(RM) -f TAGS
  444 	@$(ETAGS) $(HFILES) $(CFILES)
  445 
  446 lint :	$(CFILES) $(OBJDIR)/parsdate.c tincfg.h options_menu.h
  447 	@$(ECHO) "Linting source (results in ./LINT) ..."
  448 	@$(LINT) $(LINTFLAGS) `$(ECHO) $(CFILES)|$(SED) -e 's/\.y/.c/'` $(LIBS) 1>LINT 2>&1
  449 
  450 clean :
  451 	@$(ECHO) "Cleaning ..."
  452 	@-$(RM) -f $(OFILES)
  453 	@-$(RM) -f $(OBJDIR)/parsdate.c
  454 	@-$(RM) -f LINT *.ln *.out trace
  455 	@-$(RM) -f makecfg$X makecfg$o tincfg.h options_menu.h
  456 	@-$(RM) -rf makecfg.dSYM
  457 	@-$(RM) -f core *~
  458 	@-$(RM) -f $(EXE)
  459 @PCREDIR_MAKE@	@-if test -r ../pcre/Makefile ; then $(CD) ../pcre && $(ECHO) "Cleaning Philip Hazel's Perl-compatible regular expressions library ..." && $(REMAKE) clean ; fi
  460 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(CD) ../po && $(REMAKE) $@ ; fi
  461 @INTLDIR_MAKE@	@-if test -r ../intl/Makefile ; then $(CD) ../intl && $(REMAKE) $@ ; fi
  462 
  463 laundry \
  464 dirty :
  465 	@$(ECHO) "I'm sorry, this is not supported yet ..."
  466 
  467 distclean \
  468 clobber :: clean
  469 	@$(ECHO) "Clobbering ..."
  470 	@-$(RM) -f $(OFILES) $(BINDIR)/$(EXE) tags TAGS LINT cflow.$(PACKAGE)
  471 
  472 distclean ::
  473 @INTLDIR_MAKE@	@-$(CD) ../intl && $(REMAKE) $@
  474 @MSG_DIR_MAKE@	@-$(CD) ../po && $(REMAKE) clean
  475 
  476 cflow :
  477 	@$(ECHO) "Creating cflow for $(PACKAGE) ..."
  478 @PCREDIR_MAKE@	@$(CFLOW) -I$(INCDIR) -I$(SRCDIR) -I../pcre $(CFILES) > cflow.$(PACKAGE)
  479 
  480 cscope :
  481 	@$(ECHO) "Creating cscope database $(PACKAGE) ..."
  482 	@$(CSCOPE) $(ALL_FILES)
  483 
  484 @PCREDIR_MAKE@../pcre/pcre.h ../pcre/$(PRELIB)pcre.a :
  485 @PCREDIR_MAKE@	@$(ECHO) "Building Philip Hazel's Perl regular expressions library ..."
  486 @PCREDIR_MAKE@	@$(CD) ../pcre && $(REMAKE) $(PRELIB)pcre.a
  487 
  488 @INTLDIR_MAKE@@INTLLIBS@ :
  489 @INTLDIR_MAKE@	@$(ECHO) "Building GNU gettext library ..."
  490 @INTLDIR_MAKE@	@$(CD) ../intl && $(REMAKE)
  491 
  492 @CANDIR_MAKE@../libcanlock/$(PRELIB)canlock.a :
  493 @CANDIR_MAKE@	@$(ECHO) "Building Cancel-Lock library ..."
  494 @CANDIR_MAKE@	@$(CD) ../libcanlock && $(REMAKE) lib
  495 
  496 options_menu.h :		$(SRCDIR)/tincfg.tbl \
  497 				makecfg$X
  498 	./makecfg $(SRCDIR)/tincfg.tbl tincfg.h
  499 
  500 tincfg.h :			$(SRCDIR)/tincfg.tbl \
  501 				makecfg$X
  502 	./makecfg $(SRCDIR)/tincfg.tbl $@
  503 
  504 makecfg$X :			$(SRCDIR)/makecfg.c \
  505 				Makefile \
  506 				$(INCDIR)/tin.h \
  507 				../include/autoconf.h
  508 	@SHOW_CC@
  509 	@ECHO_CC@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -o $@ $(SRCDIR)/makecfg.c
  510 
  511 TIN_DEP	= \
  512 	Makefile \
  513 	options_menu.h \
  514 	$(INCDIR)/tin.h \
  515 	$(INCDIR)/tinrc.h \
  516 	../include/autoconf.h \
  517 	$(INCDIR)/bool.h \
  518 	$(INCDIR)/debug.h \
  519 	$(INCDIR)/extern.h \
  520 	$(INCDIR)/nntplib.h \
  521 	$(INCDIR)/tcurses.h \
  522 	$(INCDIR)/proto.h $(EXTRA_PCREHDRS) $(EXTRA_INTLLIBS)
  523 
  524 $(OBJDIR)/active$o :		$(SRCDIR)/active.c $(TIN_DEP)
  525 $(OBJDIR)/art$o :		$(SRCDIR)/art.c $(TIN_DEP) \
  526 				$(INCDIR)/newsrc.h \
  527 				$(INCDIR)/stpwatch.h
  528 $(OBJDIR)/attrib$o :		$(SRCDIR)/attrib.c $(TIN_DEP) \
  529 				$(INCDIR)/version.h
  530 $(OBJDIR)/auth$o :		$(SRCDIR)/auth.c $(TIN_DEP)
  531 $(OBJDIR)/charset$o :		$(SRCDIR)/charset.c $(TIN_DEP)
  532 $(OBJDIR)/color$o :		$(SRCDIR)/color.c $(TIN_DEP)
  533 $(OBJDIR)/config$o :		$(SRCDIR)/config.c $(TIN_DEP) \
  534 				$(INCDIR)/tnntp.h \
  535 				$(INCDIR)/version.h
  536 $(OBJDIR)/cook$o :		$(SRCDIR)/cook.c $(TIN_DEP) \
  537 				$(INCDIR)/rfc2046.h
  538 $(OBJDIR)/curses$o :		$(SRCDIR)/curses.c $(TIN_DEP) \
  539 				$(INCDIR)/missing_fd.h \
  540 				$(INCDIR)/tnntp.h
  541 $(OBJDIR)/debug$o :		$(SRCDIR)/debug.c $(TIN_DEP) \
  542 				$(INCDIR)/newsrc.h
  543 $(OBJDIR)/envarg$o :		$(SRCDIR)/envarg.c $(TIN_DEP)
  544 $(OBJDIR)/feed$o :		$(SRCDIR)/feed.c $(TIN_DEP) \
  545 				$(INCDIR)/keymap.h \
  546 				$(INCDIR)/rfc2046.h
  547 $(OBJDIR)/filter$o :		$(SRCDIR)/filter.c $(TIN_DEP) \
  548 				$(INCDIR)/keymap.h \
  549 				$(INCDIR)/version.h
  550 $(OBJDIR)/getline$o :		$(SRCDIR)/getline.c $(TIN_DEP)
  551 $(OBJDIR)/global$o :		$(SRCDIR)/global.c $(TIN_DEP) \
  552 				$(INCDIR)/keymap.h
  553 $(OBJDIR)/group$o :		$(SRCDIR)/group.c $(TIN_DEP) \
  554 				$(INCDIR)/keymap.h
  555 $(OBJDIR)/hashstr$o :		$(SRCDIR)/hashstr.c $(TIN_DEP)
  556 $(OBJDIR)/header$o :		$(SRCDIR)/header.c $(TIN_DEP) \
  557 				$(INCDIR)/tnntp.h
  558 $(OBJDIR)/help$o :		$(SRCDIR)/help.c $(TIN_DEP) \
  559 				$(INCDIR)/keymap.h
  560 $(OBJDIR)/inews$o :		$(SRCDIR)/inews.c $(TIN_DEP) \
  561 				$(INCDIR)/tnntp.h
  562 $(OBJDIR)/init$o :		$(SRCDIR)/init.c $(TIN_DEP) \
  563 				$(INCDIR)/bugrep.h \
  564 				$(INCDIR)/keymap.h \
  565 				$(INCDIR)/tnntp.h \
  566 				$(INCDIR)/version.h
  567 $(OBJDIR)/joinpath$o :		$(SRCDIR)/joinpath.c $(TIN_DEP)
  568 $(OBJDIR)/keymap$o :		$(SRCDIR)/keymap.c $(TIN_DEP) \
  569 				$(INCDIR)/keymap.h \
  570 				$(INCDIR)/version.h
  571 $(OBJDIR)/lang$o :		$(SRCDIR)/lang.c $(TIN_DEP)
  572 $(OBJDIR)/langinfo$o :		$(SRCDIR)/langinfo.c $(TIN_DEP)
  573 $(OBJDIR)/list$o :		$(SRCDIR)/list.c $(TIN_DEP)
  574 $(OBJDIR)/lock$o :		$(SRCDIR)/lock.c $(TIN_DEP)
  575 $(OBJDIR)/mail$o :		$(SRCDIR)/mail.c $(TIN_DEP)
  576 $(OBJDIR)/main$o :		$(SRCDIR)/main.c $(TIN_DEP) \
  577 				$(INCDIR)/version.h
  578 $(OBJDIR)/memory$o :		$(SRCDIR)/memory.c $(TIN_DEP) \
  579 				$(INCDIR)/rfc2046.h
  580 $(OBJDIR)/mimetypes$o :		$(SRCDIR)/mimetypes.c $(TIN_DEP)
  581 $(OBJDIR)/misc$o :		$(SRCDIR)/misc.c $(TIN_DEP) \
  582 				$(INCDIR)/policy.h \
  583 				$(INCDIR)/rfc2046.h \
  584 				$(INCDIR)/version.h
  585 $(OBJDIR)/my_tmpfile$o :	$(SRCDIR)/my_tmpfile.c $(TIN_DEP)
  586 $(OBJDIR)/newsrc$o :		$(SRCDIR)/newsrc.c $(TIN_DEP) \
  587 				$(INCDIR)/newsrc.h \
  588 				$(INCDIR)/tnntp.h
  589 $(OBJDIR)/nntplib$o :		$(SRCDIR)/nntplib.c $(TIN_DEP) \
  590 				$(INCDIR)/tnntp.h
  591 $(OBJDIR)/nrctbl$o :		$(SRCDIR)/nrctbl.c $(TIN_DEP) \
  592 				$(INCDIR)/keymap.h \
  593 				$(INCDIR)/version.h
  594 $(OBJDIR)/options_menu$o :	$(SRCDIR)/options_menu.c $(TIN_DEP) \
  595 				tincfg.h \
  596 				$(INCDIR)/keymap.h
  597 $(OBJDIR)/page$o :		$(SRCDIR)/page.c $(TIN_DEP) \
  598 				$(INCDIR)/keymap.h \
  599 				$(INCDIR)/rfc2046.h
  600 $(OBJDIR)/parsdate$o :		$(OBJDIR)/parsdate.y $(TIN_DEP)
  601 $(OBJDIR)/pgp$o :		$(SRCDIR)/pgp.c $(TIN_DEP) \
  602 				$(INCDIR)/keymap.h
  603 $(OBJDIR)/plp_snprintf$o :	$(SRCDIR)/plp_snprintf.c $(TIN_DEP) \
  604 				$(INCDIR)/plp_snprintf.h
  605 $(OBJDIR)/post$o :		$(SRCDIR)/post.c $(TIN_DEP) \
  606 				$(INCDIR)/keymap.h \
  607 				$(INCDIR)/rfc2046.h \
  608 				$(INCDIR)/version.h
  609 $(OBJDIR)/prompt$o :		$(SRCDIR)/prompt.c $(TIN_DEP) \
  610 				$(INCDIR)/keymap.h
  611 $(OBJDIR)/read$o :		$(SRCDIR)/read.c $(TIN_DEP) \
  612 				$(INCDIR)/missing_fd.h \
  613 				$(INCDIR)/keymap.h \
  614 				$(INCDIR)/tnntp.h
  615 $(OBJDIR)/refs$o :		$(SRCDIR)/refs.c $(TIN_DEP)
  616 $(OBJDIR)/regex$o :		$(SRCDIR)/regex.c $(TIN_DEP)
  617 $(OBJDIR)/rfc1524$o :		$(SRCDIR)/rfc1524.c $(TIN_DEP) \
  618 				$(INCDIR)/rfc2046.h
  619 $(OBJDIR)/rfc2045$o :		$(SRCDIR)/rfc2045.c $(TIN_DEP)
  620 $(OBJDIR)/rfc2046$o :		$(SRCDIR)/rfc2046.c $(TIN_DEP) \
  621 				$(INCDIR)/rfc2046.h
  622 $(OBJDIR)/rfc2047$o :		$(SRCDIR)/rfc2047.c $(TIN_DEP) \
  623 				$(INCDIR)/rfc2046.h
  624 $(OBJDIR)/save$o :		$(SRCDIR)/save.c $(TIN_DEP) \
  625 				$(INCDIR)/keymap.h \
  626 				$(INCDIR)/rfc2046.h
  627 $(OBJDIR)/screen$o :		$(SRCDIR)/screen.c $(TIN_DEP)
  628 $(OBJDIR)/search$o :		$(SRCDIR)/search.c $(TIN_DEP) \
  629 				$(INCDIR)/keymap.h
  630 $(OBJDIR)/select$o :		$(SRCDIR)/select.c $(TIN_DEP) \
  631 				$(INCDIR)/keymap.h
  632 $(OBJDIR)/sigfile$o :		$(SRCDIR)/sigfile.c $(TIN_DEP)
  633 $(OBJDIR)/signal$o :		$(SRCDIR)/signal.c $(TIN_DEP) \
  634 				$(INCDIR)/version.h
  635 $(OBJDIR)/strftime$o :		$(SRCDIR)/strftime.c $(TIN_DEP)
  636 $(OBJDIR)/string$o :		$(SRCDIR)/string.c $(TIN_DEP)
  637 $(OBJDIR)/tags$o :		$(SRCDIR)/tags.c $(TIN_DEP)
  638 $(OBJDIR)/tcurses$o :		$(SRCDIR)/tcurses.c $(TIN_DEP)
  639 $(OBJDIR)/thread$o :		$(SRCDIR)/thread.c $(TIN_DEP) \
  640 				$(INCDIR)/keymap.h
  641 $(OBJDIR)/tmpfile$o :		$(SRCDIR)/tmpfile.c $(TIN_DEP)
  642 $(OBJDIR)/version$o :		$(SRCDIR)/version.c $(TIN_DEP) \
  643 				$(INCDIR)/keymap.h \
  644 				$(INCDIR)/version.h
  645 $(OBJDIR)/wildmat$o :		$(SRCDIR)/wildmat.c $(TIN_DEP)
  646 $(OBJDIR)/xface$o :		$(SRCDIR)/xface.c $(TIN_DEP)
  647 $(OBJDIR)/xref$o :		$(SRCDIR)/xref.c $(TIN_DEP) \
  648 				$(INCDIR)/newsrc.h
  649 @EXTRAO_DEP@$(EXTRAOBJS) :	$(TIN_DEP)