1 | ## @file
|
---|
2 | # GNU/Linux makefile for Base Tools project build.
|
---|
3 | #
|
---|
4 | # Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 | #
|
---|
7 |
|
---|
8 | all: subdirs
|
---|
9 |
|
---|
10 | LANGUAGES = C Python
|
---|
11 |
|
---|
12 | SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
|
---|
13 | SUBDIRS := $(SOURCE_SUBDIRS) Tests
|
---|
14 | CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
|
---|
15 |
|
---|
16 | .PHONY: subdirs $(SUBDIRS)
|
---|
17 | subdirs: $(SUBDIRS)
|
---|
18 | $(SUBDIRS):
|
---|
19 | $(MAKE) -C $@
|
---|
20 |
|
---|
21 | Tests: $(SOURCE_SUBDIRS)
|
---|
22 |
|
---|
23 | .PHONY: $(CLEAN_SUBDIRS)
|
---|
24 | $(CLEAN_SUBDIRS):
|
---|
25 | -$(MAKE) -C $(@:-clean=) clean
|
---|
26 |
|
---|
27 | clean: $(CLEAN_SUBDIRS)
|
---|