Fix 'make distcheck'.
[m4/ericb.git] / GNUmakefile
blobbcdcc6cc7ddecb50bb8acfe3f3f8a34af3905fa8
1 # Having a separate GNUmakefile lets me `include' both Makefile.maint
2 # and Makefile.
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, 2006, 2007 Free Software Foundation, Inc.
9 # This file is part of GNU M4.
11 # GNU M4 is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # GNU M4 is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 # Systems where /bin/sh is not the default shell need this. The $(shell)
25 # command below won't work with e.g. stock DOS/Windows shells.
26 ifeq ($(wildcard /bin/s[h]),/bin/sh)
27 SHELL = /bin/sh
28 else
29 # will be used only with the next shell-test line, then overwritten
30 # by a configured-in value
31 SHELL = sh
32 endif
34 have-Makefile := $(shell test -f Makefile && echo yes)
36 # If the user runs GNU make but has not yet run ./configure,
37 # give them a diagnostic.
38 ifeq ($(have-Makefile),yes)
40 # Make tar archive easier to reproduce.
41 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
43 include Makefile
44 include $(srcdir)/Makefile.maint
46 else
48 all:
49 @echo There seems to be no Makefile in this directory. 1>&2
50 @echo "You must run ./configure before running \`make'." 1>&2
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: