"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.2/src/Makefile.in" (8 Dec 2017, 22360 Bytes) of package /linux/misc/tin-2.4.2.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.1_vs_2.4.2.

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