| 1 |
#************************************************************************** |
| 2 |
#* * |
| 3 |
#* OCaml * |
| 4 |
#* * |
| 5 |
#* Gabriel Scherer, projet Parsifal, INRIA Saclay * |
| 6 |
#* * |
| 7 |
#* Copyright 2020 Institut National de Recherche en Informatique et * |
| 8 |
#* en Automatique. * |
| 9 |
#* * |
| 10 |
#* All rights reserved. This file is distributed under the terms of * |
| 11 |
#* the GNU Lesser General Public License version 2.1, with the * |
| 12 |
#* special exception on linking described in the file LICENSE. * |
| 13 |
#* * |
| 14 |
#************************************************************************** |
| 15 |
|
| 16 |
MAKECMDGOALS ?= defaultentry |
| 17 |
|
| 18 |
CLEAN_TARGET_NAMES=clean partialclean distclean |
| 19 |
|
| 20 |
# Some special targets ('*clean' and 'configure') do not require configuration. |
| 21 |
# REQUIRES_CONFIGURATION is empty if only those targets are requested, |
| 22 |
# and non-empty if configuration is required. |
| 23 |
REQUIRES_CONFIGURATION := $(strip \ |
| 24 |
$(filter-out $(CLEAN_TARGET_NAMES) configure, $(MAKECMDGOALS))) |
| 25 |
|
| 26 |
ifneq "$(REQUIRES_CONFIGURATION)" "" |
| 27 |
ifneq "$(origin BUILD_CONFIG_INCLUDED)" "override" |
| 28 |
include $(ROOTDIR)/Makefile.build_config |
| 29 |
endif |
| 30 |
endif |