"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.2/Makefile" (24 Dec 2017, 14881 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": 2.4.1_vs_2.4.2.

    1 # Top level Makefile for tin
    2 # - for configuration options read the doc/INSTALL file.
    3 #
    4 # Updated: 2017-08-09
    5 #
    6 
    7 SHELL	= @SHELL@
    8 
    9 PROJECT	= tin
   10 LVER	= 2
   11 PVER	= 4
   12 SVER	= 2
   13 VER	= $(LVER).$(PVER).$(SVER)
   14 DVER	= 20171224
   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/sha-private.h \
  279 	$(CANDIR)/include/sha.h \
  280 	$(CANDIR)/test/canlocktest.c \
  281 	$(CANDIR)/test/canlocktest_legacy.c \
  282 	$(CANDIR)/test/hkdf.c \
  283 	$(CANDIR)/test/shatest.c \
  284 	$(CANDIR)/util/canlock.c
  285 
  286 MISC	= \
  287 	$(INCDIR)/autoconf.hin \
  288 	$(SRCDIR)/Makefile.in \
  289 	$(SRCDIR)/tincfg.tbl
  290 
  291 INTLFILES = \
  292 	$(INTLDIR)/bindtextdom.c \
  293 	$(INTLDIR)/ChangeLog \
  294 	$(INTLDIR)/config.charset \
  295 	$(INTLDIR)/dcgettext.c \
  296 	$(INTLDIR)/dcigettext.c \
  297 	$(INTLDIR)/dcngettext.c \
  298 	$(INTLDIR)/dgettext.c \
  299 	$(INTLDIR)/dngettext.c \
  300 	$(INTLDIR)/explodename.c \
  301 	$(INTLDIR)/finddomain.c \
  302 	$(INTLDIR)/gettext.c \
  303 	$(INTLDIR)/gettext.h \
  304 	$(INTLDIR)/gettextP.h \
  305 	$(INTLDIR)/hash-string.h \
  306 	$(INTLDIR)/intl-compat.c \
  307 	$(INTLDIR)/l10nflist.c \
  308 	$(INTLDIR)/libgettext.h \
  309 	$(INTLDIR)/libgnuintl.h \
  310 	$(INTLDIR)/loadinfo.h \
  311 	$(INTLDIR)/loadmsgcat.c \
  312 	$(INTLDIR)/localcharset.c \
  313 	$(INTLDIR)/locale.alias \
  314 	$(INTLDIR)/localealias.c \
  315 	$(INTLDIR)/Makefile.in \
  316 	$(INTLDIR)/ngettext.c \
  317 	$(INTLDIR)/plural.c \
  318 	$(INTLDIR)/plural.y \
  319 	$(INTLDIR)/ref-add.sin \
  320 	$(INTLDIR)/ref-del.sin \
  321 	$(INTLDIR)/textdomain.c \
  322 	$(INTLDIR)/VERSION
  323 
  324 POFILES = \
  325 	$(PODIR)/Makefile.inn \
  326 	$(PODIR)/POTFILES.in \
  327 	$(PODIR)/$(PROJECT).pot \
  328 	$(PODIR)/da.gmo \
  329 	$(PODIR)/da.po \
  330 	$(PODIR)/de.gmo \
  331 	$(PODIR)/de.po \
  332 	$(PODIR)/en_GB.gmo \
  333 	$(PODIR)/en_GB.po \
  334 	$(PODIR)/et.gmo \
  335 	$(PODIR)/et.po \
  336 	$(PODIR)/fr.gmo \
  337 	$(PODIR)/fr.po \
  338 	$(PODIR)/ru.gmo \
  339 	$(PODIR)/ru.po \
  340 	$(PODIR)/sv.gmo \
  341 	$(PODIR)/sv.po \
  342 	$(PODIR)/tr.gmo \
  343 	$(PODIR)/tr.po \
  344 	$(PODIR)/zh_CN.po \
  345 	$(PODIR)/zh_CN.gmo \
  346 	$(PODIR)/zh_TW.po \
  347 	$(PODIR)/zh_TW.gmo
  348 
  349 L10NFILES = \
  350 	$(L10NDIR)/de/tin.1 \
  351 	$(L10NDIR)/de/tin.5 \
  352 	$(L10NDIR)/de.add \
  353 	$(L10NDIR)/de.po \
  354 	$(L10NDIR)/en_GB/tin.1 \
  355 	$(L10NDIR)/en_GB/tin.5 \
  356 	$(L10NDIR)/en_GB.po \
  357 	$(L10NDIR)/tin-man.pot
  358 
  359 ALL_FILES = $(TOP) $(DOC) $(TOL) $(HFILES) $(CFILES) $(PCRE) $(MISC) $(CAN) $(INTLFILES) $(POFILES) $(L10NFILES)
  360 
  361 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
  362 
  363 # standard commands
  364 CD	= cd
  365 CHMOD	= chmod
  366 CP	= cp -p
  367 ECHO	= echo
  368 LS	= ls
  369 MAKE	= make
  370 MV	= mv
  371 NROFF	= groff -Tascii
  372 RM	= rm
  373 SHELL	= /bin/sh
  374 TAR	= tar
  375 GZIP	= gzip
  376 BZIP2	= bzip2
  377 XZ	= xz
  378 WC	= wc
  379 SED	= sed
  380 TR	= tr
  381 TEST	= test
  382 PO4A	= po4a
  383 
  384 all:
  385 	@$(ECHO) "Top level Makefile for the $(PROJECT) v$(VER) Usenet newsreader."
  386 	@$(ECHO) " "
  387 	@$(ECHO) "To compile the source code type 'make build' or change to the"
  388 	@$(ECHO) "source directory by typing 'cd src' and then type 'make'."
  389 	@$(ECHO) " "
  390 	@$(ECHO) "This Makefile offers the following general purpose options:"
  391 	@$(ECHO) " "
  392 	@$(ECHO) "    make build           [ Compile $(PROJECT) ]"
  393 	@$(ECHO) "    make clean           [ Delete all object and backup files ]"
  394 	@$(ECHO) "    make dist            [ Create a gzipped & bzipped distribution tar file ]"
  395 	@$(ECHO) "    make distclean       [ Delete all config, object and backup files ]"
  396 	@$(ECHO) "    make install         [ Install the binary and the manual page ]"
  397 	@$(ECHO) "    make install_sysdefs [ Install the system-wide-defaults file ]"
  398 	@$(ECHO) "    make manpage         [ Create nroff version of manual page ]"
  399 	@$(ECHO) "    make manifest        [ Create MANIFEST ]"
  400 	@$(ECHO) " "
  401 
  402 build:
  403 	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
  404 
  405 install:
  406 	@$(CD) $(SRCDIR) && $(MAKE) install
  407 
  408 install_sysdefs:
  409 	@$(CD) $(SRCDIR) && $(MAKE) install_sysdefs
  410 
  411 clean:
  412 	@-$(RM) -f \
  413 	*~ \
  414 	$(DOCDIR)/*~ \
  415 	$(INCDIR)/*~ \
  416 	$(SRCDIR)/*~ \
  417 	$(PCREDIR)/*~
  418 	@-if $(TEST) -r $(PCREDIR)/Makefile ; then $(CD) $(PCREDIR) && $(MAKE) clean ; fi
  419 	@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) clean ; fi
  420 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) clean ; fi
  421 	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) clean ; fi
  422 	@-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) clean ; fi
  423 
  424 man:
  425 	@$(MAKE) manpage
  426 
  427 manpage:
  428 	@$(ECHO) "Creating $(NROFF) man page for $(EXE)-$(VER)..."
  429 	@$(NROFF) -man $(DOCDIR)/tin.1 > $(DOCDIR)/$(EXE).nrf
  430 
  431 # Use 2 passes for creating MANIFEST because its size changes (it's not likely
  432 # that we'll need 3 passes, since that'll happen only when the grand total's
  433 # digits change).
  434 manifest:
  435 	@$(ECHO) "Creating MANIFEST..."
  436 	@$(ECHO) "MANIFEST for $(PROJECT)-$(VER) (`date`)" > MANIFEST.tmp
  437 	@$(ECHO) "----------------------------------------------------" >> MANIFEST.tmp
  438 	@$(CP) MANIFEST.tmp MANIFEST
  439 	@$(WC) -c $(ALL_FILES) >> MANIFEST
  440 	@$(WC) -c $(ALL_FILES) >> MANIFEST.tmp
  441 	@$(MV) MANIFEST.tmp MANIFEST
  442 
  443 chmod:
  444 	@$(ECHO) "Setting the file permissions..."
  445 	@$(CHMOD) 644 $(ALL_FILES)
  446 	@$(CHMOD) 755 \
  447 	$(ALL_DIRS) \
  448 	$(TOPDIR)/conf-tin \
  449 	$(TOPDIR)/config.guess \
  450 	$(TOPDIR)/config.sub \
  451 	$(TOPDIR)/configure \
  452 	$(TOPDIR)/install-sh \
  453 	$(TOLDIR)/expiretover \
  454 	$(TOLDIR)/metamutt \
  455 	$(TOLDIR)/opt-case.pl \
  456 	$(TOLDIR)/tinlock \
  457 	$(TOLDIR)/tinews.pl \
  458 	$(TOLDIR)/url_handler.pl \
  459 	$(TOLDIR)/url_handler.sh \
  460 	$(TOLDIR)/w2r.pl \
  461 	$(PCREDIR)/perltest \
  462 	$(PCREDIR)/version.sh
  463 
  464 tar:
  465 	@$(ECHO) "Generating gzipped tar file..."
  466 	@-$(RM) -f $(PROJECT)-$(VER).tar.gz
  467 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  468 	`$(ECHO) $(ALL_FILES) \
  469 	| $(TR) -s '[[:space:]]' "[\012*]" \
  470 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  471 	| $(TR) "[\012]" " "`
  472 	@$(GZIP) -9 $(PROJECT)-$(VER).tar
  473 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.gz
  474 	@$(LS) -l $(PROJECT)-$(VER).tar.gz
  475 
  476 bzip2:
  477 	@$(ECHO) "Generating bzipped tar file..."
  478 	@-$(RM) -f $(PROJECT)-$(VER).tar.bz2
  479 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  480 	`$(ECHO) $(ALL_FILES) \
  481 	| $(TR) -s '[[:space:]]' "[\012*]" \
  482 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  483 	| $(TR) "[\012]" " "`
  484 	@$(BZIP2) -9 $(PROJECT)-$(VER).tar
  485 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.bz2
  486 	@$(LS) -l $(PROJECT)-$(VER).tar.bz2
  487 
  488 xz:
  489 	@$(ECHO) "Generating xz compressd tar file..."
  490 	@-$(RM) -f $(PROJECT)-$(VER).tar.xz
  491 	@$(TAR) cvf $(PROJECT)-$(VER).tar -C ../ \
  492 	`$(ECHO) $(ALL_FILES) \
  493 	| $(TR) -s '[[:space:]]' "[\012*]" \
  494 	| $(SED) 's,^\./,$(PROJECT)-$(VER)/,' \
  495 	| $(TR) "[\012]" " "`
  496 	@$(XZ) -z -F xz -9e $(PROJECT)-$(VER).tar
  497 	@$(CHMOD) 644 $(PROJECT)-$(VER).tar.xz
  498 	@$(LS) -l $(PROJECT)-$(VER).tar.xz
  499 
  500 #
  501 # I know it's ugly, but it works
  502 #
  503 name:
  504 	@DATE=`date +%Y%m%d` ; NAME=`basename \`pwd\`` ;\
  505 	if $(TEST) $$NAME != "$(PROJECT)-$(VER)" ; then \
  506 		$(MV) ../$$NAME ../$(PROJECT)-$(VER) ;\
  507 	fi ;\
  508 	$(SED) "s,^PACKAGE=[[:print:]]*,PACKAGE=$(PROJECT)," ./configure.in > ./configure.in.out && \
  509 	$(SED) "s,^VERSION=[[:print:]]*,VERSION=$(VER)," ./configure.in.out > ./configure.in && \
  510 	$(RM) ./configure.in.out ;\
  511 	$(SED) "s,^DVER[[:space:]]*=[[:print:]]*,DVER	= $$DATE," ./Makefile > ./Makefile.tmp && \
  512 	$(MV) ./Makefile.tmp ./Makefile ;\
  513 	$(SED) "s,RELEASEDATE[[:space:]]*\"[[:print:]]*\",RELEASEDATE	\"$$DATE\"," $(INCDIR)/version.h > $(INCDIR)/version.h.tmp && \
  514 	$(SED) "s, VERSION[[:space:]]*\"[[:print:]]*\", VERSION		\"$(VER)\"," $(INCDIR)/version.h.tmp > $(INCDIR)/version.h && \
  515 	$(RM) $(INCDIR)/version.h.tmp ;\
  516 	$(MAKE) configure
  517 
  518 dist:
  519 	@$(MAKE) name
  520 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) ; fi
  521 	@$(MAKE) manifest
  522 	@$(MAKE) chmod
  523 	@$(MAKE) tar
  524 	@$(MAKE) bzip2
  525 	@$(MAKE) xz
  526 
  527 version:
  528 	@$(ECHO) "$(PROJECT)-$(VER)"
  529 
  530 distclean:
  531 	@-$(MAKE) clean
  532 	@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) distclean ; fi
  533 	@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) distclean ; fi
  534 	@-if $(TEST) -r $(PCREDIR)/Makefile ; then $(CD) $(PCREDIR) && $(MAKE) distclean ; fi
  535 	@-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) distclean ; fi
  536 	@-$(RM) -f \
  537 	$(TOPDIR)/config.cache \
  538 	$(TOPDIR)/config.log \
  539 	$(TOPDIR)/config.status \
  540 	$(TOPDIR)/td-conf.out \
  541 	$(TOPDIR)/CPPCHECK \
  542 	$(INCDIR)/autoconf.h \
  543 	$(SRCDIR)/Makefile \
  544 	$(PCREDIR)/Makefile \
  545 	$(CANDIR)/Makefile \
  546 	$(INTLDIR)/po2tbl.sed \
  547 	$(PROJECT)-$(VER).tar.gz \
  548 	$(PROJECT)-$(VER).tar.bz2 \
  549 	$(PROJECT)-$(VER).tar.xz \
  550 	$(PODIR)/messages.mo
  551 
  552 configure: configure.in aclocal.m4
  553 	autoconf
  554 
  555 config.status: configure
  556 	$(SHELL) $(TOPDIR)/config.status --recheck
  557 
  558 po4a:
  559 	@$(PO4A) po4a.conf
  560 
  561 cppcheck: FORCE
  562 	@-if $(TEST) ! -r $(SRCDIR)/options_menu.h -o ! -r $(SRCDIR)/tincfg.h ; then $(MAKE) build ; fi
  563 	@-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
  564 
  565 FORCE: