xref: /petsc/GNUmakefile (revision bf0e3ef8d80099d1d20d4bb00b1ebd544ae0f47c)
1#
2#   This file allows the PETSc make commands in makefile to be run if gnumake is the default make without setting the PETSC_DIR.
3#   gnumake defaults to using GNUmakefile before makefile
4
5include petscdir.mk
6
7# Target to build (update) the PETSc libraries
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