annotate build-aux/GNUmakefile @ 7369:ab997acbb35a

[ChangeLog] * modules/clock-time (Maintainer): Add self. * modules/getlogin_r (Depends-on): Add extensions. [m4/ChangeLog] * host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 26 Sep 2006 06:36:30 +0000
parents f86aa960142e
children 749d702b319d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6636
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
1 # Having a separate GNUmakefile lets me `include' the dynamically
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
2 # generated rules created via Makefile.maint as well as Makefile.maint itself.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3 # This makefile is used only if you run GNU Make.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4 # It is necessary if you want to build targets usually of interest
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
5 # only to the maintainer.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
7 # Copyright (C) 2001, 2003, 2006 Free Software Foundation, Inc.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
8 #
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
9 # This program is free software; you can redistribute it and/or modify
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
10 # it under the terms of the GNU General Public License as published by
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
11 # the Free Software Foundation; either version 2 of the License, or
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
12 # (at your option) any later version.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
13 #
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
14 # This program is distributed in the hope that it will be useful,
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
17 # GNU General Public License for more details.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
18 #
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
19 # You should have received a copy of the GNU General Public License along
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
20 # with this program; if not, write to the Free Software Foundation, Inc.,
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
22
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
23 # Systems where /bin/sh is not the default shell need this. The $(shell)
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
24 # command below won't work with e.g. stock DOS/Windows shells.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
25 ifeq ($(wildcard /bin/s[h]),/bin/sh)
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
26 SHELL = /bin/sh
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
27 else
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
28 # will be used only with the next shell-test line, then overwritten
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
29 # by a configured-in value
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
30 SHELL = sh
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
31 endif
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
32
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
33 # Make tar archive easier to reproduce.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
34 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
35
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
36 # Ran autoreconf and configure or not?
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
37 have-Makefile := $(shell test -f Makefile && echo yes)
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
38 ifeq ($(have-Makefile),yes)
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
39
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
40 include Makefile
6637
f86aa960142e * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
Simon Josefsson <simon@josefsson.org>
parents: 6636
diff changeset
41 -include $(srcdir)/maint-cfg.mk
f86aa960142e * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
Simon Josefsson <simon@josefsson.org>
parents: 6636
diff changeset
42 include $(srcdir)/maint.mk
6636
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
43
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
44 else
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
45
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
46 .DEFAULT_GOAL := abort-due-to-no-makefile
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
47
6637
f86aa960142e * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
Simon Josefsson <simon@josefsson.org>
parents: 6636
diff changeset
48 -include ./maint-cfg.mk
f86aa960142e * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
Simon Josefsson <simon@josefsson.org>
parents: 6636
diff changeset
49 include ./maint.mk
6636
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
50
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
51 abort-due-to-no-makefile:
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
52 @echo There seems to be no Makefile in this directory. 1>&2
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
53 @echo "You must run ./configure before running \`make'." 1>&2
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
54 @exit 1
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
55
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
56 endif
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
57
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
58 # Tell version 3.79 and up of GNU make to not build goals in this
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
59 # directory in parallel. This is necessary in case someone tries to
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
60 # build multiple targets on one command line.
45f5aa25f015 * modules/maintainer-makefile: New module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
61 .NOTPARALLEL: