(Limitations of Usual Tools): Document that
[autoconf/tsuna.git] / GNUmakefile
blob7e67536c4bcc3abeb611a3a0427c4ddc6a20960e
1 # Having a separate GNUmakefile lets me `include' the dynamically
2 # generated rules created via Makefile.maint as well as Makefile.maint itself.
3 # This makefile is used only if you run GNU Make.
4 # It is necessary if you want to build targets usually of interest
5 # only to the maintainer.
7 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License along
20 # with this program; if not, write to the Free Software Foundation, Inc.,
21 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 # Systems where /bin/sh is not the default shell need this. The $(shell)
24 # command below won't work with e.g. stock DOS/Windows shells.
25 ifeq ($(wildcard /bin/s[h]),/bin/sh)
26 SHELL = /bin/sh
27 else
28 # will be used only with the next shell-test line, then overwritten
29 # by a configured-in value
30 SHELL = sh
31 endif
33 have-Makefile := $(shell test -f Makefile && echo yes)
35 # If the user runs GNU make but has not yet run ./configure,
36 # give them a diagnostic.
37 ifeq ($(have-Makefile),yes)
39 # Make tar archive easier to reproduce.
40 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
42 include Makefile
43 include $(srcdir)/Makefile.cfg
44 include $(srcdir)/Makefile.maint
46 else
48 all:
49 @echo There seems to be no Makefile in this directory.
50 @echo "You must run ./configure before running \`make'."
51 @exit 1
53 endif
55 # Tell version 3.79 and up of GNU make to not build goals in this
56 # directory in parallel. This is necessary in case someone tries to
57 # build multiple targets on one command line.
58 .NOTPARALLEL: