"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/Makefile" (24 Dec 2016, 14534 Bytes) of archive /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 latest Fossies "Diffs" side-by-side code changes report for "Makefile": 2.4.0_vs_2.4.1.

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