"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.3/Makefile" (24 Dec 2018, 15053 Bytes) of package /linux/misc/tin-2.4.3.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": 2.4.2_vs_2.4.3.

    1 # Top level Makefile for tin
    2 # - for configuration options read the doc/INSTALL file.
    3 #
    4 # Updated: 2018-12-04
    5 #
    6 
    7 SHELL	= @SHELL@
    8 
    9 PROJECT	= tin
   10 LVER	= 2
   11 PVER	= 4
   12 SVER	= 3
   13 VER	= $(LVER).$(PVER).$(SVER)
   14 DVER	= 20181224
   15 EXE	= tin
   16 
   17 # directory structure
   18 TOPDIR	= .
   19 DOCDIR	= ./doc
   20 INCDIR	= ./include
   21 OBJDIR	= ./src
   22 SRCDIR	= ./src
   23 PCREDIR	= ./pcre
   24 CANDIR	= ./libcanlock
   25 TOLDIR	= ./tools
   26 PODIR	= ./po
   27 INTLDIR	= ./intl
   28 L10NDIR	= ./doc/l10n
   29 
   30 HFILES	= \
   31 	$(INCDIR)/bool.h \
   32 	$(INCDIR)/bugrep.h \
   33 	$(INCDIR)/debug.h \
   34 	$(INCDIR)/extern.h \
   35 	$(INCDIR)/keymap.h \
   36 	$(INCDIR)/newsrc.h \
   37 	$(INCDIR)/nntplib.h \
   38 	$(INCDIR)/plp_snprintf.h \
   39 	$(INCDIR)/policy.h \
   40 	$(INCDIR)/proto.h \
   41 	$(INCDIR)/rfc2046.h \
   42 	$(INCDIR)/stpwatch.h \
   43 	$(INCDIR)/tcurses.h \
   44 	$(INCDIR)/tin.h \
   45 	$(INCDIR)/tinrc.h \
   46 	$(INCDIR)/tnntp.h \
   47 	$(INCDIR)/trace.h \
   48 	$(INCDIR)/version.h
   49 
   50 CFILES	= \
   51 	$(SRCDIR)/active.c \
   52 	$(SRCDIR)/art.c \
   53 	$(SRCDIR)/attrib.c \
   54 	$(SRCDIR)/auth.c \
   55 	$(SRCDIR)/charset.c \
   56 	$(SRCDIR)/color.c \
   57 	$(SRCDIR)/config.c \
   58 	$(SRCDIR)/cook.c \
   59 	$(SRCDIR)/curses.c \
   60 	$(SRCDIR)/debug.c\
   61 	$(SRCDIR)/envarg.c \
   62 	$(SRCDIR)/feed.c \
   63 	$(SRCDIR)/filter.c \
   64 	$(SRCDIR)/getline.c \
   65 	$(SRCDIR)/global.c \
   66 	$(SRCDIR)/group.c \
   67 	$(SRCDIR)/hashstr.c \
   68 	$(SRCDIR)/header.c \
   69 	$(SRCDIR)/heapsort.c \
   70 	$(SRCDIR)/help.c\
   71 	$(SRCDIR)/inews.c \
   72 	$(SRCDIR)/init.c \
   73 	$(SRCDIR)/joinpath.c \
   74 	$(SRCDIR)/keymap.c \
   75 	$(SRCDIR)/lang.c \
   76 	$(SRCDIR)/langinfo.c \
   77 	$(SRCDIR)/list.c \
   78 	$(SRCDIR)/lock.c \
   79 	$(SRCDIR)/mail.c \
   80 	$(SRCDIR)/main.c \
   81 	$(SRCDIR)/makecfg.c \
   82 	$(SRCDIR)/memory.c \
   83 	$(SRCDIR)/mimetypes.c \
   84 	$(SRCDIR)/misc.c \
   85 	$(SRCDIR)/newsrc.c\
   86 	$(SRCDIR)/nntplib.c \
   87 	$(SRCDIR)/nrctbl.c \
   88 	$(SRCDIR)/options_menu.c \
   89 	$(SRCDIR)/page.c \
   90 	$(SRCDIR)/parsdate.y \
   91 	$(SRCDIR)/plp_snprintf.c \
   92 	$(SRCDIR)/pgp.c \
   93 	$(SRCDIR)/post.c \
   94 	$(SRCDIR)/prompt.c \
   95 	$(SRCDIR)/read.c \
   96 	$(SRCDIR)/refs.c \
   97 	$(SRCDIR)/regex.c \
   98 	$(SRCDIR)/rfc1524.c \
   99 	$(SRCDIR)/rfc2045.c \
  100 	$(SRCDIR)/rfc2046.c \
  101 	$(SRCDIR)/rfc2047.c \
  102 	$(SRCDIR)/save.c \
  103 	$(SRCDIR)/screen.c \
  104 	$(SRCDIR)/search.c \
  105 	$(SRCDIR)/select.c \
  106 	$(SRCDIR)/sigfile.c \
  107 	$(SRCDIR)/signal.c \
  108 	$(SRCDIR)/strftime.c \
  109 	$(SRCDIR)/string.c \
  110 	$(SRCDIR)/tags.c \
  111 	$(SRCDIR)/tcurses.c \
  112 	$(SRCDIR)/tmpfile.c \
  113 	$(SRCDIR)/my_tmpfile.c \
  114 	$(SRCDIR)/thread.c \
  115 	$(SRCDIR)/trace.c \
  116 	$(SRCDIR)/version.c \
  117 	$(SRCDIR)/wildmat.c \
  118 	$(SRCDIR)/xface.c \
  119 	$(SRCDIR)/xref.c
  120 
  121 DOC	= \
  122 	$(DOCDIR)/ABOUT-NLS \
  123 	$(DOCDIR)/CHANGES \
  124 	$(DOCDIR)/CHANGES.old \
  125 	$(DOCDIR)/CREDITS \
  126 	$(DOCDIR)/DEBUG_REFS \
  127 	$(DOCDIR)/INSTALL \
  128 	$(DOCDIR)/TODO \
  129 	$(DOCDIR)/WHATSNEW \
  130 	$(DOCDIR)/art_handling.txt \
  131 	$(DOCDIR)/article.txt \
  132 	$(DOCDIR)/auth.txt \
  133 	$(DOCDIR)/config-anomalies \
  134 	$(DOCDIR)/filtering \
  135 	$(DOCDIR)/good-netkeeping-seal \
  136 	$(DOCDIR)/internals.txt \
  137 	$(DOCDIR)/iso2asc.txt \
  138 	$(DOCDIR)/keymap.sample \
  139 	$(DOCDIR)/mailcap.sample \
  140 	$(DOCDIR)/mbox.5 \
  141 	$(DOCDIR)/mime.types \
  142 	$(DOCDIR)/mmdf.5 \
  143 	$(DOCDIR)/newsoverview.5 \
  144 	$(DOCDIR)/nov_tests \
  145 	$(DOCDIR)/opt-case.1 \
  146 	$(DOCDIR)/plp_snprintf.3 \
  147 	$(DOCDIR)/pgp.txt \
  148 	$(DOCDIR)/rcvars.txt \
  149 	$(DOCDIR)/reading-mail.txt \
  150 	$(DOCDIR)/umlaute.txt \
  151 	$(DOCDIR)/umlauts.txt \
  152 	$(DOCDIR)/url_handler.1 \
  153 	$(DOCDIR)/tin.1 \
  154 	$(DOCDIR)/tin.5 \
  155 	$(DOCDIR)/tin.defaults \
  156 	$(DOCDIR)/tinews.1 \
  157 	$(DOCDIR)/tools.txt \
  158 	$(DOCDIR)/w2r.1 \
  159 	$(DOCDIR)/wildmat.3
  160 
  161 TOL	= \
  162 	$(TOLDIR)/expiretover \
  163 	$(TOLDIR)/metamutt \
  164 	$(TOLDIR)/opt-case.pl \
  165 	$(TOLDIR)/tinlock \
  166 	$(TOLDIR)/tinews.pl \
  167 	$(TOLDIR)/url_handler.pl \
  168 	$(TOLDIR)/url_handler.sh \
  169 	$(TOLDIR)/w2r.pl \
  170 	$(TOLDIR)/expand_aliases.tgz
  171 
  172 TOP	= \
  173 	$(TOPDIR)/Makefile \
  174 	$(TOPDIR)/MANIFEST \
  175 	$(TOPDIR)/README \
  176 	$(TOPDIR)/README.MAC \
  177 	$(TOPDIR)/README.WIN \
  178 	$(TOPDIR)/aclocal.m4 \
  179 	$(TOPDIR)/conf-tin \
  180 	$(TOPDIR)/config.guess \
  181 	$(TOPDIR)/config.sub \
  182 	$(TOPDIR)/configure \
  183 	$(TOPDIR)/configure.in \
  184 	$(TOPDIR)/install-sh \
  185 	$(TOPDIR)/po4a.conf \
  186 	$(TOPDIR)/tin.spec
  187 
  188 PCRE	= \
  189 	$(PCREDIR)/AUTHORS \
  190 	$(PCREDIR)/COPYING \
  191 	$(PCREDIR)/ChangeLog \
  192 	$(PCREDIR)/INSTALL \
  193 	$(PCREDIR)/LICENCE \
  194 	$(PCREDIR)/Makefile.in \
  195 	$(PCREDIR)/Makefile.in-old \
  196 	$(PCREDIR)/NEWS \
  197 	$(PCREDIR)/NON-UNIX-USE \
  198 	$(PCREDIR)/README \
  199 	$(PCREDIR)/RunTest.in \
  200 	$(PCREDIR)/config.h \
  201 	$(PCREDIR)/configure.in \
  202 	$(PCREDIR)/version.sh \
  203 	$(PCREDIR)/dftables.c \
  204 	$(PCREDIR)/pcre-config.in \
  205 	$(PCREDIR)/pcre.h \
  206 	$(PCREDIR)/pcre_compile.c \
  207 	$(PCREDIR)/pcre_config.c \
  208 	$(PCREDIR)/pcre_dfa_exec.c \
  209 	$(PCREDIR)/pcre_exec.c \
  210 	$(PCREDIR)/pcre_fullinfo.c \
  211 	$(PCREDIR)/pcre_get.c \
  212 	$(PCREDIR)/pcre_globals.c \
  213 	$(PCREDIR)/pcre_info.c \
  214 	$(PCREDIR)/pcre_internal.h \
  215 	$(PCREDIR)/pcre_maketables.c \
  216 	$(PCREDIR)/pcre_newline.c \
  217 	$(PCREDIR)/pcre_ord2utf8.c \
  218 	$(PCREDIR)/pcre_printint.src \
  219 	$(PCREDIR)/pcre_refcount.c \
  220 	$(PCREDIR)/pcre_study.c \
  221 	$(PCREDIR)/pcre_tables.c \
  222 	$(PCREDIR)/pcre_try_flipped.c \
  223 	$(PCREDIR)/pcre_ucp_searchfuncs.c \
  224 	$(PCREDIR)/pcre_valid_utf8.c \
  225 	$(PCREDIR)/pcre_version.c \
  226 	$(PCREDIR)/pcre_xclass.c \
  227 	$(PCREDIR)/pcredemo.c \
  228 	$(PCREDIR)/pcregrep.c \
  229 	$(PCREDIR)/pcreposix.c \
  230 	$(PCREDIR)/pcreposix.h \
  231 	$(PCREDIR)/pcretest.c \
  232 	$(PCREDIR)/perltest \
  233 	$(PCREDIR)/ucp.h \
  234 	$(PCREDIR)/ucpinternal.h \
  235 	$(PCREDIR)/ucptable.c \
  236 	$(PCREDIR)/doc/pcre.3 \
  237 	$(PCREDIR)/doc/pcrepattern.3 \
  238 	$(PCREDIR)/testdata/testinput1 \
  239 	$(PCREDIR)/testdata/testinput2 \
  240 	$(PCREDIR)/testdata/testinput3 \
  241 	$(PCREDIR)/testdata/testinput4 \
  242 	$(PCREDIR)/testdata/testinput5 \
  243 	$(PCREDIR)/testdata/testinput6 \
  244 	$(PCREDIR)/testdata/testinput7 \
  245 	$(PCREDIR)/testdata/testinput8 \
  246 	$(PCREDIR)/testdata/testinput9 \
  247 	$(PCREDIR)/testdata/testoutput1 \
  248 	$(PCREDIR)/testdata/testoutput2 \
  249 	$(PCREDIR)/testdata/testoutput3 \
  250 	$(PCREDIR)/testdata/testoutput4 \
  251 	$(PCREDIR)/testdata/testoutput5 \
  252 	$(PCREDIR)/testdata/testoutput6 \
  253 	$(PCREDIR)/testdata/testoutput7 \
  254 	$(PCREDIR)/testdata/testoutput8 \
  255 	$(PCREDIR)/testdata/testoutput9
  256 
  257 CAN	= \
  258 	$(CANDIR)/COPYING \
  259 	$(CANDIR)/ChangeLog \
  260 	$(CANDIR)/ChangeLog_V0 \
  261 	$(CANDIR)/ChangeLog_V1 \
  262 	$(CANDIR)/ChangeLog_V2 \
  263 	$(CANDIR)/ChangeLog_V3 \
  264 	$(CANDIR)/INSTALL \
  265 	$(CANDIR)/LICENSE \
  266 	$(CANDIR)/Makefile.in \
  267 	$(CANDIR)/README \
  268 	$(CANDIR)/src/base64.c \
  269 	$(CANDIR)/src/canlock.c \
  270 	$(CANDIR)/src/hmac.c \
  271 	$(CANDIR)/src/secret.c \
  272 	$(CANDIR)/src/sha1.c \
  273 	$(CANDIR)/src/sha224-256.c \
  274 	$(CANDIR)/src/sha384-512.c \
  275 	$(CANDIR)/src/usha.c \
  276 	$(CANDIR)/include/base64.h \
  277 	$(CANDIR)/include/canlock.h \
  278 	$(CANDIR)/include/canlock-private.h \
  279 	$(CANDIR)/include/config.h \
  280 	$(CANDIR)/include/sha-private.h \
  281 	$(CANDIR)/include/sha.h \
  282 	$(CANDIR)/test/canlocktest.c \
  283 	$(CANDIR)/test/canlocktest_legacy.c \
  284 	$(CANDIR)/test/hkdf.c \
  285 	$(CANDIR)/test/shatest.c \
  286 	$(CANDIR)/util/canlock.c
  287 
  288 MISC	= \
  289 	$(INCDIR)/autoconf.hin \
  290 	$(SRCDIR)/Makefile.in \
  291 	$(SRCDIR)/tincfg.tbl
  292 
  293 INTLFILES = \
  294 	$(INTLDIR)/bindtextdom.c \
  295 	$(INTLDIR)/ChangeLog \
  296 	$(INTLDIR)/config.charset \
  297 	$(INTLDIR)/dcgettext.c \
  298 	$(INTLDIR)/dcigettext.c \
  299 	$(INTLDIR)/dcngettext.c \
  300 	$(INTLDIR)/dgettext.c \
  301 	$(INTLDIR)/dngettext.c \
  302 	$(INTLDIR)/explodename.c \
  303 	$(INTLDIR)/finddomain.c \
  304 	$(INTLDIR)/gettext.c \
  305 	$(INTLDIR)/gettext.h \
  306 	$(INTLDIR)/gettextP.h \
  307 	$(INTLDIR)/hash-string.h \
  308 	$(INTLDIR)/intl-compat.c \
  309 	$(INTLDIR)/l10nflist.c \
  310 	$(INTLDIR)/libgettext.h \
  311 	$(INTLDIR)/libgnuintl.h \
  312 	$(INTLDIR)/loadinfo.h \
  313 	$(INTLDIR)/loadmsgcat.c \
  314 	$(INTLDIR)/localcharset.c \
  315 	$(INTLDIR)/locale.alias \
  316 	$(INTLDIR)/localealias.c \
  317 	$(INTLDIR)/Makefile.in \
  318 	$(INTLDIR)/ngettext.c \
  319 	$(INTLDIR)/plural.c \
  320 	$(INTLDIR)/plural.y \
  321 	$(INTLDIR)/ref-add.sin \
  322 	$(INTLDIR)/ref-del.sin \
  323 	$(INTLDIR)/textdomain.c \
  324 	$(INTLDIR)/VERSION
  325 
  326 POFILES = \
  327 	$(PODIR)/Makefile.inn \
  328 	$(PODIR)/POTFILES.in \
  329 	$(PODIR)/$(PROJECT).pot \
  330 	$(PODIR)/da.gmo \
  331 	$(PODIR)/da.po \
  332 	$(PODIR)/de.gmo \
  333 	$(PODIR)/de.po \
  334 	$(PODIR)/en_GB.gmo \
  335 	$(PODIR)/en_GB.po \
  336 	$(PODIR)/es.gmo \
  337 	$(PODIR)/es.po \
  338 	$(PODIR)/et.gmo \
  339 	$(PODIR)/et.po \
  340 	$(PODIR)/fr.gmo \
  341 	$(PODIR)/fr.po \
  342 	$(PODIR)/ru.gmo \
  343 	$(PODIR)/ru.po \
  344 	$(PODIR)/sv.gmo \
  345 	$(PODIR)/sv.po \
  346 	$(PODIR)/tr.gmo \
  347 	$(PODIR)/tr.po \
  348 	$(PODIR)/zh_CN.po \
  349 	$(PODIR)/zh_CN.gmo \
  350 	$(PODIR)/zh_TW.po \
  351 	$(PODIR)/zh_TW.gmo
  352 
  353 L10NFILES = \
  354 	$(L10NDIR)/de/tin.1 \
  355 	$(L10NDIR)/de/tin.5 \
  356 	$(L10NDIR)/de.add \
  357 	$(L10NDIR)/de.po \
  358 	$(L10NDIR)/en_GB/tin.1 \
  359 	$(L10NDIR)/en_GB/tin.5 \
  360 	$(L10NDIR)/en_GB.po \
  361 	$(L10NDIR)/es/tin.1 \
  362 	$(L10NDIR)/es/tin.5 \
  363 	$(L10NDIR)/es.po \
  364 	$(L10NDIR)/tin-man.pot
  365 
  366 ALL_FILES = $(TOP) $(DOC) $(TOL) $(HFILES) $(CFILES) $(PCRE) $(MISC) $(CAN) $(INTLFILES) $(POFILES) $(L10NFILES)
  367 
  368 ALL_DIRS = $(TOPDIR) $(DOCDIR) $(SRCDIR) $(INCDIR) $(PCREDIR) $(PCREDIR)/doc $(PCREDIR)/testdata $(CANDIR) $(CANDIR)/include $(CANDIR)/src $(CANDIR)/test $(CANDIR)/util/ $(INTLDIR) $(PODIR) $(L10NDIR) $(L10NDIR)/de $(L10NDIR)/en_GB
  369 
  370 # standard commands
  371 CD	= cd
  372 CHMOD	= chmod
  373 CP	= cp -p
  374 ECHO	= echo
  375 LS	= ls
  376 MAKE	= make
  377 MV	= mv
  378 NROFF	= groff -Tascii
  379 RM	= rm
  380 SHELL	= /bin/sh
  381 TAR	= tar
  382 GZIP	= gzip
  383 BZIP2	= bzip2
  384 XZ	= xz
  385 WC	= wc
  386 SED	= sed
  387 TR	= tr
  388 TEST	= test
  389 PO4A	= po4a
  390 
  391 all:
  392 	@$(ECHO) "Top level Makefile for the $(PROJECT) v$(VER) Usenet newsreader."
  393 	@$(ECHO) " "
  394 	@$(ECHO) "To compile the source code type 'make build' or change to the"
  395 	@$(ECHO) "source directory by typing 'cd src' and then type 'make'."
  396 	@$(ECHO) " "
  397 	@$(ECHO) "This Makefile offers the following general purpose options:"
  398 	@$(ECHO) " "
  399 	@$(ECHO) "    make build           [ Compile $(PROJECT) ]"
  400 	@$(ECHO) "    make clean           [ Delete all object and backup files ]"
  401 	@$(ECHO) "    make dist            [ Create a gzipped & bzipped distribution tar file ]"
  402 	@$(ECHO) "    make distclean       [ Delete all config, object and backup files ]"
  403 	@$(ECHO) "    make install         [ Install the binary and the manual page ]"
  404 	@$(ECHO) "    make install_sysdefs [ Install the system-wide-defaults file ]"
  405 	@$(ECHO) "    make manpage         [ Create nroff version of manual page ]"
  406 	@$(ECHO) "    make manifest        [ Create MANIFEST ]"
  407 	@$(ECHO) " "
  408 
  409 build:
  410 	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
  411 
  412 install:
  413 	@$(CD) $(SRCDIR) && $(MAKE) install
  414 
  415 install_sysdefs:
  416 	@$(CD) $(SRCDIR) && $(MAKE) install_sysdefs
  417 
  418 clean:
  419 	@-$(RM) -f \
  420 	*~ \
  421 	$(DOCDIR)/*~ \
  422 	$(INCDIR)/*~ \
  423 	$(SRCDIR)/*~ \
  424 	$(PCREDIR)/*~
  425 	@-if $(TEST) -r $(PCREDIR)/Makefile ; then $(CD) $(PCREDIR) && $(MAKE) clean ; fi
  426 	@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) clean ; fi
  427 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) clean ; fi
  428 	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) clean ; fi
  429 	@-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) clean ; fi
  430 
  431 man:
  432 	@$(MAKE) manpage
  433 
  434 manpage:
  435 	@$(ECHO) "Creating $(NROFF) man page for $(EXE)-$(VER)..."
  436 	@$(NROFF) -man $(DOCDIR)/tin.1 > $(DOCDIR)/$(EXE).nrf
  437 
  438 # Use 2 passes for creating MANIFEST because its size changes (it's not likely
  439 # that we'll need 3 passes, since that'll happen only when the grand total's
  440 # digits change).
  441 manifest:
  442 	@$(ECHO) "Creating MANIFEST..."
  443 	@$(ECHO) "MANIFEST for $(PROJECT)-$(VER) (`date`)" > MANIFEST.tmp
  444 	@$(ECHO) "----------------------------------------------------" >> MANIFEST.tmp
  445 	@$(CP) MANIFEST.tmp MANIFEST
  446 	@$(WC) -c $(ALL_FILES) >> MANIFEST
  447 	@$(WC) -c $(ALL_FILES) >> MANIFEST.tmp
  448 	@$(MV) MANIFEST.tmp MANIFEST
  449 
  450 chmod:
  451 	@$(ECHO) "Setting the file permissions..."
  452 	@$(CHMOD) 644 $(ALL_FILES)
  453 	@$(CHMOD) 755 \
  454 	$(ALL_DIRS) \
  455 	$(TOPDIR)/conf-tin \
  456 	$(TOPDIR)/config.guess \
  457 	$(TOPDIR)/config.sub \
  458 	$(TOPDIR)/configure \
  459 	$(TOPDIR)/install-sh \
  460 	$(TOLDIR)/expiretover \
  461 	$(TOLDIR)/metamutt \
  462 	$(TOLDIR)/opt-case.pl \
  463 	$(TOLDIR)/tinlock \
  464 	$(TOLDIR)/tinews.pl \
  465 	$(TOLDIR)/url_handler.pl \
  466 	$(TOLDIR)/url_handler.sh \
  467 	$(TOLDIR)/w2r.pl \
  468 	$(PCREDIR)/perltest \
  469 	$(PCREDIR)/version.sh
  470 
  471 tar:
  472 	@$(ECHO) "Generating gzipped tar file..."
  473 	@-$(RM) -f $(PROJECT)-$(VER).tar.gz
  474 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  475 	`$(ECHO) $(ALL_FILES) \
  476 	| $(TR) -s '[[:space:]]' "[\012*]" \
  477 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  478 	| $(TR) "[\012]" " "`
  479 	@$(GZIP) -9 $(PROJECT)-$(VER).tar
  480 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.gz
  481 	@$(LS) -l $(PROJECT)-$(VER).tar.gz
  482 
  483 bzip2:
  484 	@$(ECHO) "Generating bzipped tar file..."
  485 	@-$(RM) -f $(PROJECT)-$(VER).tar.bz2
  486 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  487 	`$(ECHO) $(ALL_FILES) \
  488 	| $(TR) -s '[[:space:]]' "[\012*]" \
  489 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  490 	| $(TR) "[\012]" " "`
  491 	@$(BZIP2) -9 $(PROJECT)-$(VER).tar
  492 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.bz2
  493 	@$(LS) -l $(PROJECT)-$(VER).tar.bz2
  494 
  495 xz:
  496 	@$(ECHO) "Generating xz compressd tar file..."
  497 	@-$(RM) -f $(PROJECT)-$(VER).tar.xz
  498 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  499 	`$(ECHO) $(ALL_FILES) \
  500 	| $(TR) -s '[[:space:]]' "[\012*]" \
  501 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  502 	| $(TR) "[\012]" " "`
  503 	@$(XZ) -z -F xz -9e $(PROJECT)-$(VER).tar
  504 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.xz
  505 	@$(LS) -l $(PROJECT)-$(VER).tar.xz
  506 
  507 #
  508 # I know it's ugly, but it works
  509 #
  510 name:
  511 	@DATE=`date +%Y%m%d` ; NAME=`basename \`pwd\`` ;\
  512 	if $(TEST) $$NAME != "$(PROJECT)-$(VER)" ; then \
  513 		$(MV) ../$$NAME ../$(PROJECT)-$(VER) ;\
  514 	fi ;\
  515 	$(SED) "s,^PACKAGE=[[:print:]]*,PACKAGE=$(PROJECT)," ./configure.in > ./configure.in.out && \
  516 	$(SED) "s,^VERSION=[[:print:]]*,VERSION=$(VER)," ./configure.in.out > ./configure.in && \
  517 	$(RM) ./configure.in.out ;\
  518 	$(SED) "s,^DVER[[:space:]]*=[[:print:]]*,DVER	= $$DATE," ./Makefile > ./Makefile.tmp && \
  519 	$(MV) ./Makefile.tmp ./Makefile ;\
  520 	$(SED) "s,RELEASEDATE[[:space:]]*\"[[:print:]]*\",RELEASEDATE	\"$$DATE\"," $(INCDIR)/version.h > $(INCDIR)/version.h.tmp && \
  521 	$(SED) "s, VERSION[[:space:]]*\"[[:print:]]*\", VERSION		\"$(VER)\"," $(INCDIR)/version.h.tmp > $(INCDIR)/version.h && \
  522 	$(RM) $(INCDIR)/version.h.tmp ;\
  523 	$(MAKE) configure
  524 
  525 dist:
  526 	@$(MAKE) name
  527 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) ; fi
  528 	@$(MAKE) manifest
  529 	@$(MAKE) chmod
  530 	@$(MAKE) tar
  531 	@$(MAKE) bzip2
  532 	@$(MAKE) xz
  533 
  534 version:
  535 	@$(ECHO) "$(PROJECT)-$(VER)"
  536 
  537 distclean:
  538 	@-$(MAKE) clean
  539 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) distclean ; fi
  540 	@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) distclean ; fi
  541 	@-if $(TEST) -r $(PCREDIR)/Makefile ; then $(CD) $(PCREDIR) && $(MAKE) distclean ; fi
  542 	@-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) distclean ; fi
  543 	@-$(RM) -f \
  544 	$(TOPDIR)/config.cache \
  545 	$(TOPDIR)/config.log \
  546 	$(TOPDIR)/config.status \
  547 	$(TOPDIR)/td-conf.out \
  548 	$(TOPDIR)/CPPCHECK \
  549 	$(INCDIR)/autoconf.h \
  550 	$(SRCDIR)/Makefile \
  551 	$(PCREDIR)/Makefile \
  552 	$(CANDIR)/Makefile \
  553 	$(INTLDIR)/po2tbl.sed \
  554 	$(PROJECT)-$(VER).tar.gz \
  555 	$(PROJECT)-$(VER).tar.bz2 \
  556 	$(PROJECT)-$(VER).tar.xz \
  557 	$(PODIR)/messages.mo
  558 
  559 configure: configure.in aclocal.m4
  560 	autoconf
  561 
  562 config.status: configure
  563 	$(SHELL) $(TOPDIR)/config.status --recheck
  564 
  565 po4a:
  566 	@$(PO4A) po4a.conf
  567 
  568 cppcheck: FORCE
  569 	@-if $(TEST) ! -r $(SRCDIR)/options_menu.h -o ! -r $(SRCDIR)/tincfg.h ; then $(MAKE) build ; fi
  570 	@-if $(TEST) -r $(SRCDIR)/options_menu.h -a -r $(SRCDIR)/tincfg.h ; then cppcheck -f -v -I $(INCDIR) -I $(CANDIR) -I $(PCREDIR) -I $(SRCDIR) $(SRCDIR) 1>/dev/null 2>$(TOPDIR)/CPPCHECK ; fi
  571 
  572 FORCE: