2 # GNU/Linux makefile for Base Tools project build.
4 # Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
13 SUBDIRS := $(SOURCE_SUBDIRS) Tests
14 CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
16 .PHONY: subdirs $(SUBDIRS)
21 Tests: $(SOURCE_SUBDIRS)
23 .PHONY: $(CLEAN_SUBDIRS)
25 -$(MAKE) -C $(@:-clean=) clean
27 clean: $(CLEAN_SUBDIRS)