(print_header): Rather than using a hard-coded literal
[coreutils.git] / GNUmakefile
blob4c1d70296f038a7dfccc6d79e74b14e4e722f589
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 # Systems where /bin/sh is not the default shell need this. The $(shell)
8 # command below won't work with e.g. stock DOS/Windows shells.
9 SHELL = /bin/sh
11 have-Makefile := $(shell test -f Makefile && echo yes)
13 # If the user runs GNU make but has not yet run ./configure,
14 # give them a diagnostic.
15 ifeq ($(have-Makefile),yes)
17 # Make tar archive easier to reproduce.
18 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
20 include Makefile
21 include $(srcdir)/Makefile.cfg
22 include $(srcdir)/Makefile.maint
24 else
26 all:
27 @echo There seems to be no Makefile in this directory.
28 @echo "You must run ./configure before running \`make'."
29 @exit 1
31 endif
33 # Tell version 3.79 and up of GNU make to not build goals in this
34 # directory in parallel. This is necessary in case someone tries to
35 # build multiple targets on one command line.
36 .NOTPARALLEL: