xref: /petsc/GNUmakefile (revision d5c9c0c4eebc2f2a01a1bd0c86fca87e2acd2a03)
1#
2#   This file allows the high level PETSc make commands to be run if gnuumake is the default make without setting the PETSC_DIR.
3#   This will prevent errors for the subset of users who run make all without first setting PETSC_DIR which results in wasteful email to the PETSc Team
4
5include petscdir.mk
6
7# Default target
8all :
9	+@$(MAKE) -f makefile --no-print-directory $@
10
11ifeq ($(firstword $(sort 4.1.99 $(MAKE_VERSION))),4.1.99)
12include gmakefile
13endif
14
15# For any target that doesn't exist in gmakefile, use the legacy makefile (which has the logging features)
16% :
17	+@$(MAKE) -f makefile --no-print-directory $@
18