- Optification is done by auto builder now
[gnuplot] / GNUmakefile
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.
6
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
10
11 have-Makefile := $(shell test -f Makefile && echo yes)
12
13 # If the user runs GNU make but has not yet run ./configure,
14 # give them a diagnostic.
15 ifeq ($(have-Makefile),yes)
16
17 include Makefile
18 include $(srcdir)/Makefile.maint
19
20 else
21
22 all:
23         @echo There seems to be no Makefile in this directory.
24         @echo "You must run ./configure before running \`make'."
25         @exit 1
26
27 endif
28
29 pre-dist:
30         @cd docs && make gnuplot.texi
31         @cd config && rm -f Makefile.am && make -f Makefile.am.in Makefile.am
32         @cd demo && rm -f Makefile.am && make -f Makefile.am.in Makefile.am
33         @cd m4 && rm -f Makefile.am && make -f Makefile.am.in Makefile.am
34         @cd src && rm -f makefile.all && make -f Makefile.maint makefile.all
35         @cd term && rm -f Makefile.am && make -f Makefile.am.in Makefile.am
36         @cd tutorial && rm -f Makefile.am && make -f Makefile.am.in Makefile.am