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.
5 # Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 # Free Software Foundation, Inc.
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)
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.
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/>.
21 # Find gnulib headers.
22 ACLOCAL_AMFLAGS = -I m4
24 # Additional files to distribute.
25 EXTRA_DIST = ChangeLog.O m4/gnulib-cache.m4
27 # Subdirectories to descend into.
28 SUBDIRS = contrib lib po src doc man tests
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.
35 if test -f po/POTFILES.in; then \
36 grep -E -v '^(#|$$)' po/POTFILES.in \
37 | grep -v '^src/false\.c$$' | sort > $@-1; \
39 for file in $$($(CVS_LIST_EXCEPT)) `find * -name '*.[ch]'`; do \
41 djgpp/* | man/*) continue;; \
45 base=`expr " $$file" : ' \(.*\)\..'`; \
46 { test -f $$base.l || test -f $$base.y; } && continue;; \
48 files="$$files $$file"; \
50 grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files \
52 diff -u $@-1 $@-2 || exit 1; \
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
61 gendocs = build-aux/gendocs.sh
62 gendocs_envvars = GENDOCS_TEMPLATE_DIR=doc
65 manual_title = "Hello, GNU World"
66 email = bug-hello@gnu.org
67 gendocs_args = --email $(email) $(manual) $(manual_title)
69 www_target = $(HOME)/gnu/www/hello/manual
73 rm -rf $(doctemp) && mkdir $(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.