ares test
[scm/test.git] / Makefile.am
1 # Process this file with automake to produce Makefile.in (in this,
2 # and all subdirectories).
3 # Makefile for the top-level directory of GNU hello.
4 #
5 # Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 # Free Software Foundation, Inc.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21 # Find gnulib headers.
22 ACLOCAL_AMFLAGS = -I m4
23
24 # Additional files to distribute.
25 EXTRA_DIST = ChangeLog.O m4/gnulib-cache.m4
26
27 # Subdirectories to descend into.
28 SUBDIRS = contrib lib po src doc man tests
29
30 # Verify that all source files using _() are listed in po/POTFILES.in.
31 # The idea is to run this before making pretests, as well as official
32 # releases, so that translators will be sure to have all the messages.
33 # (From coreutils.)
34 po-check:
35         if test -f po/POTFILES.in; then                                 \
36           grep -E -v '^(#|$$)' po/POTFILES.in                           \
37             | grep -v '^src/false\.c$$' | sort > $@-1;                  \
38           files=;                                                       \
39           for file in $$($(CVS_LIST_EXCEPT)) `find * -name '*.[ch]'`; do \
40             case $$file in                                              \
41             djgpp/* | man/*) continue;;                                 \
42             esac;                                                       \
43             case $$file in                                              \
44             *.[ch])                                                     \
45               base=`expr " $$file" : ' \(.*\)\..'`;                     \
46               { test -f $$base.l || test -f $$base.y; } && continue;;   \
47             esac;                                                       \
48             files="$$files $$file";                                     \
49           done;                                                         \
50           grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files          \
51             | sort -u > $@-2;                                           \
52           diff -u $@-1 $@-2 || exit 1;                                  \
53           rm -f $@-1 $@-2;                                              \
54         fi
55
56
57 # Example of updating the online web pages for the documentation
58 # with the gendocs.sh script; see
59 # http://www.gnu.org/prep/maintain/html_node/Invoking-gendocs_002esh.html
60 #
61 gendocs = build-aux/gendocs.sh
62 gendocs_envvars = GENDOCS_TEMPLATE_DIR=doc
63 #
64 manual = hello
65 manual_title = "Hello, GNU World"
66 email = bug-hello@gnu.org
67 gendocs_args = --email $(email) $(manual) $(manual_title)
68 #
69 www_target = $(HOME)/gnu/www/hello/manual
70 #
71 doctemp = doc/wwwtemp
72 wwwdoc:
73         rm -rf $(doctemp) && mkdir $(doctemp)
74         cd $(doctemp) \
75         && ln -s ../*.texi . \
76         && env $(gendocs_envvars) $(gendocs) $(gendocs_args)
77         cp -arf $(doctemp)/manual/. $(www_target)
78         ls -ltu $(www_target)/html_node | tail  # $VCS rm -f obsolete files
79 # followed by $VCS add of new files and cvs commit.