.
[coreutils.git] / GNUmakefile
blob861ce8e38fd928468c3b90ed3806bf066c72e59a
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 have-Makefile := $(shell test -f Makefile && echo yes)
9 # If the user runs GNU make but has not yet run ./configure,
10 # give them a diagnostic.
11 ifeq ($(have-Makefile),yes)
13 include Makefile
14 include $(srcdir)/Makefile.maint
16 else
18 all:
19 @echo There seems to be no Makefile in this directory.
20 @echo "You must run ./configure before running \`make'."
21 @exit 1
23 endif