"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/src/Makefile.in" (3 Nov 2015, 22154 Bytes) of package /linux/misc/tin-2.4.1.tar.gz:


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 last Fossies "Diffs" side-by-side code changes report for "Makefile.in": 2.3.1_vs_2.3.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-2014 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 	@-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
  342 	@-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
  343 
  344 uninstall_manpage :
  345 	@$(ECHO) "Uninstalling $(PROJECT) manual page in $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT) ..."
  346 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/$(PROJECT).$(INS_MANUAL_EXT)
  347 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/r$(PROJECT).$(INS_MANUAL_EXT)
  348 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/$(PROJECT).5
  349 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5
  350 #	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5
  351 
  352 install_nls_man :
  353 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  354 		for lang in $(MAN_LINGUAS) ; do \
  355 			if test -e $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} ; then \
  356 				$(INSTALL) -D -m 444 $(DOCDIR)/l10n/$${lang}/$(PROJECT).$${manext} $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  357 			fi; \
  358 		done; \
  359 	done
  360 
  361 uninstall_nls_man :
  362 	@-for manext in $(INS_MANUAL_EXT) 5 ; do \
  363 		for lang in $(MAN_LINGUAS) ; do \
  364 			$(RM) -f $(DESTDIR)@mandir@/$${lang}/man$${manext}/$(PROJECT).$${manext}; \
  365 		done; \
  366 	done
  367 
  368 install_sysdefs : $(DESTDIR)$(INS_SYSDEF_DIR)
  369 	@$(ECHO) "Installing system-wide defaults to $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  370 	@-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
  371 	@-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
  372 	@$(INSTALL) -m 644 $(DOCDIR)/tin.defaults $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  373 	@$(INSTALL) -m 644 $(DOCDIR)/mime.types $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  374 
  375 uninstall_sysdefs :
  376 	@$(ECHO) "Uninstalling system-wide defaults in $(DESTDIR)$(INS_SYSDEF_DIR) ..."
  377 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/tin.defaults
  378 	@-$(RM) -f $(DESTDIR)$(INS_SYSDEF_DIR)/mime.types
  379 
  380 install_helpers : $(DESTDIR)$(INS_BINARY_DIR) $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)
  381 	@$(ECHO) "Installing helper applications ..."
  382 	@-if test ! -f $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; then $(INSTALL) -m 755 $(TOLDIR)/metamutt $(DESTDIR)$(INS_BINARY_DIR)/metamutt ; fi
  383 	@$(INSTALL) -m 755 $(TOLDIR)/w2r.pl $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  384 	@$(INSTALL) -m 755 $(TOLDIR)/opt-case.pl $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  385 	@$(INSTALL) -m 755 $(TOLDIR)/tinews.pl $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  386 	@$(INSTALL) -m 755 $(TOLDIR)/url_handler.pl $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  387 	@$(INSTALL) -m 444 $(DOCDIR)/w2r.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  388 	@$(INSTALL) -m 444 $(DOCDIR)/opt-case.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  389 	@$(INSTALL) -m 444 $(DOCDIR)/tinews.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  390 	@$(INSTALL) -m 444 $(DOCDIR)/url_handler.1 $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  391 
  392 uninstall_helpers :
  393 	@$(ECHO) "Removing helper applications ..."
  394 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/w2r.pl
  395 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/opt-case.pl
  396 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/tinews.pl
  397 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/url_handler.pl
  398 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/w2r.pl.$(INS_MANUAL_EXT)
  399 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/opt-case.pl.$(INS_MANUAL_EXT)
  400 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/tinews.pl.$(INS_MANUAL_EXT)
  401 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)$(INS_MANUAL_EXT)/url_handler.pl.$(INS_MANUAL_EXT)
  402 
  403 install : $(DESTDIR)$(INS_BINARY_DIR)
  404 	@$(MAKE) all
  405 	@$(ECHO) "Installing $(EXE) v$(VER) to $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE) ..."
  406 	@$(INSTALL) -s $(BINDIR)/$(EXE) $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  407 	@( $(CD) $(DESTDIR)$(INS_BINARY_DIR) && $(RM) -f r$(PROJEXE) && $(LN) $(PROJEXE) r$(PROJEXE) )
  408 	@$(MAKE) install_helpers
  409 	@$(MAKE) install_manpage
  410 @MSG_DIR_MAKE@	@$(MAKE) install_nls
  411 
  412 uninstall :
  413 	@$(ECHO) "Uninstalling $(PROJEXE) in $(DESTDIR)$(INS_BINARY_DIR) ..."
  414 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/$(PROJEXE)
  415 	@-$(RM) -f $(DESTDIR)$(INS_BINARY_DIR)/r$(PROJEXE)
  416 	@$(MAKE) uninstall_helpers
  417 	@$(MAKE) uninstall_manpage
  418 @MSG_DIR_MAKE@	@$(MAKE) uninstall_nls
  419 
  420 install_nls :
  421 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Installing NLS-files" ; $(CD) ../po/ && $(MAKE) install ; fi
  422 
  423 uninstall_nls :
  424 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(ECHO) "Uninstalling NLS-files" ; $(CD) ../po/ && $(MAKE) uninstall ; fi
  425 
  426 tags :
  427 	@$(ECHO) "Generating tags (results in ./tags) ..."
  428 	@-$(RM) -f tags
  429 	@$(TAGS) $(HFILES) $(CFILES)
  430 
  431 TAGS :
  432 	@$(ECHO) "Generating emacs tags (results in ./TAGS) ..."
  433 	@-$(RM) -f TAGS
  434 	@$(ETAGS) $(HFILES) $(CFILES)
  435 
  436 lint :	$(CFILES) $(OBJDIR)/parsdate.c tincfg.h options_menu.h
  437 	@$(ECHO) "Linting source (results in ./LINT) ..."
  438 	@$(LINT) $(LINTFLAGS) `$(ECHO) $(CFILES)|$(SED) -e 's/\.y/.c/'` $(LIBS) 1>LINT 2>&1
  439 
  440 clean :
  441 	@$(ECHO) "Cleaning ..."
  442 	@-$(RM) -f $(OFILES)
  443 	@-$(RM) -f $(OBJDIR)/parsdate.c
  444 	@-$(RM) -f LINT *.ln *.out trace
  445 	@-$(RM) -f makecfg$X makecfg$o tincfg.h options_menu.h
  446 	@-$(RM) -rf makecfg.dSYM
  447 	@-$(RM) -f core *~
  448 	@-$(RM) -f $(EXE)
  449 @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
  450 @MSG_DIR_MAKE@	@-if test -r ../po/Makefile ; then $(CD) ../po && $(MAKE) @cf_cv_makeflags@ $@ ; fi
  451 @INTLDIR_MAKE@	@-if test -r ../intl/Makefile ; then $(CD) ../intl && $(MAKE) @cf_cv_makeflags@ $@ ; fi
  452 
  453 laundry \
  454 dirty :
  455 	@$(ECHO) "I'm sorry, this is not supported yet ..."
  456 
  457 distclean \
  458 clobber :: clean
  459 	@$(ECHO) "Clobbering ..."
  460 	@-$(RM) -f $(OFILES) $(BINDIR)/$(EXE) tags TAGS LINT cflow.$(PACKAGE)
  461 
  462 distclean ::
  463 @INTLDIR_MAKE@	@-$(CD) ../intl && $(MAKE) @cf_cv_makeflags@ $@
  464 @MSG_DIR_MAKE@	@-$(CD) ../po && $(MAKE) @cf_cv_makeflags@ clean
  465 
  466 cflow :
  467 	@$(ECHO) "Creating cflow for $(PACKAGE) ..."
  468 @PCREDIR_MAKE@	@$(CFLOW) -I$(INCDIR) -I$(SRCDIR) -I../pcre $(CFILES) > cflow.$(PACKAGE)
  469 
  470 cscope :
  471 	@$(ECHO) "Creating cscope database $(PACKAGE) ..."
  472 	@$(CSCOPE) $(ALL_FILES)
  473 
  474 @PCREDIR_MAKE@../pcre/pcre.h ../pcre/$(PRELIB)pcre.a :
  475 @PCREDIR_MAKE@	@$(ECHO) "Building Philip Hazel's Perl regular expressions library ..."
  476 @PCREDIR_MAKE@	@$(CD) ../pcre && $(MAKE) @cf_cv_makeflags@ $(PRELIB)pcre.a
  477 
  478 @INTLDIR_MAKE@@INTLLIBS@ :
  479 @INTLDIR_MAKE@	@$(ECHO) "Building GNU gettext library ..."
  480 @INTLDIR_MAKE@	@$(CD) ../intl && $(MAKE) @cf_cv_makeflags@
  481 
  482 @CANDIR_MAKE@../libcanlock/$(PRELIB)canlock.a :
  483 @CANDIR_MAKE@	@$(ECHO) "Building Cancel-Lock library ..."
  484 @CANDIR_MAKE@	@$(CD) ../libcanlock && $(MAKE) @cf_cv_makeflags@ lib
  485 
  486 options_menu.h :		$(SRCDIR)/tincfg.tbl \
  487 				makecfg$X
  488 	./makecfg $(SRCDIR)/tincfg.tbl tincfg.h
  489 
  490 tincfg.h :			$(SRCDIR)/tincfg.tbl \
  491 				makecfg$X
  492 	./makecfg $(SRCDIR)/tincfg.tbl $@
  493 
  494 makecfg$X :			$(SRCDIR)/makecfg.c \
  495 				Makefile \
  496 				$(INCDIR)/tin.h \
  497 				../include/autoconf.h
  498 	@SHOW_CC@
  499 	@ECHO_CC@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) -o $@ $(SRCDIR)/makecfg.c
  500 
  501 TIN_DEP	= \
  502 	Makefile \
  503 	options_menu.h \
  504 	$(INCDIR)/tin.h \
  505 	$(INCDIR)/tinrc.h \
  506 	../include/autoconf.h \
  507 	$(INCDIR)/bool.h \
  508 	$(INCDIR)/debug.h \
  509 	$(INCDIR)/extern.h \
  510 	$(INCDIR)/nntplib.h \
  511 	$(INCDIR)/tcurses.h \
  512 	$(INCDIR)/proto.h $(EXTRA_PCREHDRS) $(EXTRA_INTLLIBS)
  513 
  514 $(OBJDIR)/active$o :		$(SRCDIR)/active.c $(TIN_DEP)
  515 $(OBJDIR)/art$o :		$(SRCDIR)/art.c $(TIN_DEP) \
  516 				$(INCDIR)/newsrc.h \
  517 				$(INCDIR)/stpwatch.h
  518 $(OBJDIR)/attrib$o :		$(SRCDIR)/attrib.c $(TIN_DEP) \
  519 				$(INCDIR)/version.h
  520 $(OBJDIR)/auth$o :		$(SRCDIR)/auth.c $(TIN_DEP)
  521 $(OBJDIR)/charset$o :		$(SRCDIR)/charset.c $(TIN_DEP)
  522 $(OBJDIR)/color$o :		$(SRCDIR)/color.c $(TIN_DEP)
  523 $(OBJDIR)/config$o :		$(SRCDIR)/config.c $(TIN_DEP) \
  524 				$(INCDIR)/tnntp.h \
  525 				$(INCDIR)/version.h
  526 $(OBJDIR)/cook$o :		$(SRCDIR)/cook.c $(TIN_DEP) \
  527 				$(INCDIR)/rfc2046.h
  528 $(OBJDIR)/curses$o :		$(SRCDIR)/curses.c $(TIN_DEP) \
  529 				$(INCDIR)/tnntp.h
  530 $(OBJDIR)/debug$o :		$(SRCDIR)/debug.c $(TIN_DEP) \
  531 				$(INCDIR)/newsrc.h
  532 $(OBJDIR)/envarg$o :		$(SRCDIR)/envarg.c $(TIN_DEP)
  533 $(OBJDIR)/feed$o :		$(SRCDIR)/feed.c $(TIN_DEP) \
  534 				$(INCDIR)/keymap.h \
  535 				$(INCDIR)/rfc2046.h
  536 $(OBJDIR)/filter$o :		$(SRCDIR)/filter.c $(TIN_DEP) \
  537 				$(INCDIR)/keymap.h \
  538 				$(INCDIR)/version.h
  539 $(OBJDIR)/getline$o :		$(SRCDIR)/getline.c $(TIN_DEP)
  540 $(OBJDIR)/global$o :		$(SRCDIR)/global.c $(TIN_DEP) \
  541 				$(INCDIR)/keymap.h
  542 $(OBJDIR)/group$o :		$(SRCDIR)/group.c $(TIN_DEP) \
  543 				$(INCDIR)/keymap.h
  544 $(OBJDIR)/hashstr$o :		$(SRCDIR)/hashstr.c $(TIN_DEP)
  545 $(OBJDIR)/header$o :		$(SRCDIR)/header.c $(TIN_DEP) \
  546 				$(INCDIR)/tnntp.h
  547 $(OBJDIR)/help$o :		$(SRCDIR)/help.c $(TIN_DEP) \
  548 				$(INCDIR)/keymap.h
  549 $(OBJDIR)/inews$o :		$(SRCDIR)/inews.c $(TIN_DEP) \
  550 				$(INCDIR)/tnntp.h
  551 $(OBJDIR)/init$o :		$(SRCDIR)/init.c $(TIN_DEP) \
  552 				$(INCDIR)/bugrep.h \
  553 				$(INCDIR)/keymap.h \
  554 				$(INCDIR)/tnntp.h \
  555 				$(INCDIR)/version.h
  556 $(OBJDIR)/joinpath$o :		$(SRCDIR)/joinpath.c $(TIN_DEP)
  557 $(OBJDIR)/keymap$o :		$(SRCDIR)/keymap.c $(TIN_DEP) \
  558 				$(INCDIR)/keymap.h \
  559 				$(INCDIR)/version.h
  560 $(OBJDIR)/lang$o :		$(SRCDIR)/lang.c $(TIN_DEP)
  561 $(OBJDIR)/langinfo$o :		$(SRCDIR)/langinfo.c $(TIN_DEP)
  562 $(OBJDIR)/list$o :		$(SRCDIR)/list.c $(TIN_DEP)
  563 $(OBJDIR)/lock$o :		$(SRCDIR)/lock.c $(TIN_DEP)
  564 $(OBJDIR)/mail$o :		$(SRCDIR)/mail.c $(TIN_DEP)
  565 $(OBJDIR)/main$o :		$(SRCDIR)/main.c $(TIN_DEP) \
  566 				$(INCDIR)/version.h
  567 $(OBJDIR)/memory$o :		$(SRCDIR)/memory.c $(TIN_DEP) \
  568 				$(INCDIR)/rfc2046.h
  569 $(OBJDIR)/mimetypes$o :		$(SRCDIR)/mimetypes.c $(TIN_DEP)
  570 $(OBJDIR)/misc$o :		$(SRCDIR)/misc.c $(TIN_DEP) \
  571 				$(INCDIR)/policy.h \
  572 				$(INCDIR)/rfc2046.h \
  573 				$(INCDIR)/version.h
  574 $(OBJDIR)/my_tmpfile$o :	$(SRCDIR)/my_tmpfile.c $(TIN_DEP)
  575 $(OBJDIR)/newsrc$o :		$(SRCDIR)/newsrc.c $(TIN_DEP) \
  576 				$(INCDIR)/newsrc.h \
  577 				$(INCDIR)/tnntp.h
  578 $(OBJDIR)/nntplib$o :		$(SRCDIR)/nntplib.c $(TIN_DEP) \
  579 				$(INCDIR)/tnntp.h
  580 $(OBJDIR)/nrctbl$o :		$(SRCDIR)/nrctbl.c $(TIN_DEP) \
  581 				$(INCDIR)/keymap.h \
  582 				$(INCDIR)/version.h
  583 $(OBJDIR)/options_menu$o :	$(SRCDIR)/options_menu.c $(TIN_DEP) \
  584 				tincfg.h \
  585 				$(INCDIR)/keymap.h
  586 $(OBJDIR)/page$o :		$(SRCDIR)/page.c $(TIN_DEP) \
  587 				$(INCDIR)/keymap.h \
  588 				$(INCDIR)/rfc2046.h
  589 $(OBJDIR)/parsdate$o :		$(OBJDIR)/parsdate.y $(TIN_DEP)
  590 $(OBJDIR)/pgp$o :		$(SRCDIR)/pgp.c $(TIN_DEP) \
  591 				$(INCDIR)/keymap.h
  592 $(OBJDIR)/plp_snprintf$o :	$(SRCDIR)/plp_snprintf.c $(TIN_DEP) \
  593 				$(INCDIR)/plp_snprintf.h
  594 $(OBJDIR)/post$o :		$(SRCDIR)/post.c $(TIN_DEP) \
  595 				$(INCDIR)/keymap.h \
  596 				$(INCDIR)/rfc2046.h \
  597 				$(INCDIR)/version.h
  598 $(OBJDIR)/prompt$o :		$(SRCDIR)/prompt.c $(TIN_DEP) \
  599 				$(INCDIR)/keymap.h
  600 $(OBJDIR)/read$o :		$(SRCDIR)/read.c $(TIN_DEP) \
  601 				$(INCDIR)/keymap.h \
  602 				$(INCDIR)/tnntp.h
  603 $(OBJDIR)/refs$o :		$(SRCDIR)/refs.c $(TIN_DEP)
  604 $(OBJDIR)/regex$o :		$(SRCDIR)/regex.c $(TIN_DEP)
  605 $(OBJDIR)/rfc1524$o :		$(SRCDIR)/rfc1524.c $(TIN_DEP) \
  606 				$(INCDIR)/rfc2046.h
  607 $(OBJDIR)/rfc2045$o :		$(SRCDIR)/rfc2045.c $(TIN_DEP)
  608 $(OBJDIR)/rfc2046$o :		$(SRCDIR)/rfc2046.c $(TIN_DEP) \
  609 				$(INCDIR)/rfc2046.h
  610 $(OBJDIR)/rfc2047$o :		$(SRCDIR)/rfc2047.c $(TIN_DEP) \
  611 				$(INCDIR)/rfc2046.h
  612 $(OBJDIR)/save$o :		$(SRCDIR)/save.c $(TIN_DEP) \
  613 				$(INCDIR)/keymap.h \
  614 				$(INCDIR)/rfc2046.h
  615 $(OBJDIR)/screen$o :		$(SRCDIR)/screen.c $(TIN_DEP)
  616 $(OBJDIR)/search$o :		$(SRCDIR)/search.c $(TIN_DEP) \
  617 				$(INCDIR)/keymap.h
  618 $(OBJDIR)/select$o :		$(SRCDIR)/select.c $(TIN_DEP) \
  619 				$(INCDIR)/keymap.h
  620 $(OBJDIR)/sigfile$o :		$(SRCDIR)/sigfile.c $(TIN_DEP)
  621 $(OBJDIR)/signal$o :		$(SRCDIR)/signal.c $(TIN_DEP) \
  622 				$(INCDIR)/version.h
  623 $(OBJDIR)/strftime$o :		$(SRCDIR)/strftime.c $(TIN_DEP)
  624 $(OBJDIR)/string$o :		$(SRCDIR)/string.c $(TIN_DEP)
  625 $(OBJDIR)/tags$o :		$(SRCDIR)/tags.c $(TIN_DEP)
  626 $(OBJDIR)/tcurses$o :		$(SRCDIR)/tcurses.c $(TIN_DEP)
  627 $(OBJDIR)/thread$o :		$(SRCDIR)/thread.c $(TIN_DEP) \
  628 				$(INCDIR)/keymap.h
  629 $(OBJDIR)/tmpfile$o :		$(SRCDIR)/tmpfile.c $(TIN_DEP)
  630 $(OBJDIR)/version$o :		$(SRCDIR)/version.c $(TIN_DEP) \
  631 				$(INCDIR)/keymap.h \
  632 				$(INCDIR)/version.h
  633 $(OBJDIR)/wildmat$o :		$(SRCDIR)/wildmat.c $(TIN_DEP)
  634 $(OBJDIR)/xface$o :		$(SRCDIR)/xface.c $(TIN_DEP)
  635 $(OBJDIR)/xref$o :		$(SRCDIR)/xref.c $(TIN_DEP) \
  636 				$(INCDIR)/newsrc.h
  637 @EXTRAO_DEP@$(EXTRAOBJS) :	$(TIN_DEP)