arm-trusted-firmware/make_helpers/build-rules.mk
Chris Kay daab00cf29 build: disable suffix rules globally
This change centralises the logic that disables the default suffix rules
that Make provides. These rules are a hold-over from legacy standards of
Make, and occasionally conflict with our rules.

Change-Id: I9e023edbc01b5ae48a96fa1078d0b81faabb0cb9
Signed-off-by: Chris Kay <chris.kay@arm.com>
2024-11-25 15:40:35 +00:00

19 lines
463 B
Makefile

#
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
ifndef build-rules-mk
build-rules-mk := $(lastword $(MAKEFILE_LIST))
include $(dir $(build-rules-mk))common.mk
include $(dir $(build-rules-mk))utilities.mk
.SECONDEXPANSION:
.SUFFIXES:
%/:
$(s)echo ' MD '$(call escape-shell,$(abspath $@))
$(q)mkdir -p $(call escape-shell,$@)
endif