1 # Makefile for gnulib central.
2 # Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
4 # Copying and distribution of this file, with or without modification,
5 # in any medium, are permitted without royalty provided the copyright
6 # notice and this notice are preserved.
8 # Produce some files that are not stored in the repository.
11 # Produce the documentation in readable form.
13 cd doc && $(MAKE) $@ && $(MAKE) mostlyclean
15 # Perform some platform independent checks on the gnulib code.
17 sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT \
18 sc_prefer_ac_check_funcs_once
20 sc_prefer_ac_check_funcs_once:
21 if test -d .git; then \
22 git grep -w -l AC_CHECK_FUNCS modules \
23 && { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS \
24 in modules/ 1>&2; exit 1; } || : \
27 sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT:
28 if test -d .git; then \
29 url=http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/22874; \
30 git grep '^[ ]*TESTS_ENVIRONMENT += PATH=' modules \
31 && { printf '%s\n' 'Do not augment PATH via TESTS_ENVIRONMENT;' \
32 " see <$$url>" 1>&2; exit 1; } || : \
35 # Regenerate some files that are stored in the repository.
38 # MODULES.html is periodically being generated and copied to the web pages at
39 # :ext:USER@cvs.savannah.gnu.org:/web/gnulib/gnulib/
40 # where it then appears at <http://www.gnu.org/software/gnulib/MODULES.html>.
41 MODULES.html: MODULES.html.sh
42 ./MODULES.html.sh > MODULES.html