GNUmakefile 606 B

123456789101112131415161718192021222324252627
  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. all: subdirs
  8. LANGUAGES = C Python
  9. SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
  10. SUBDIRS := $(SOURCE_SUBDIRS) Tests
  11. CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
  12. .PHONY: subdirs $(SUBDIRS)
  13. subdirs: $(SUBDIRS)
  14. $(SUBDIRS):
  15. $(MAKE) -C $@
  16. Tests: $(SOURCE_SUBDIRS)
  17. .PHONY: $(CLEAN_SUBDIRS)
  18. $(CLEAN_SUBDIRS):
  19. -$(MAKE) -C $(@:-clean=) clean
  20. clean: $(CLEAN_SUBDIRS)