blob: da00bfe24e52f6f186525d69605d41d7df2b03c2 [file] [log] [blame]
Matthias Andreas Benkardf59e0972018-04-10 22:01:34 +02001# Copyright 2015 Andrew Gottemoller.
2#
3# This software is a copyrighted work licensed under the terms of the
4# Weld license. Please consult the file "WELD_LICENSE" for
5# details.
6
7# This makefile discovers all the component definition files in a weld
8# project and expands a set of rules for each found component
9
10
11# If the user hasn't specified a predefined list of component definition
12# files go ahead and discover them
13ifeq ($(def_file_list),)
14
15 def_file_list := $(call find_files,$(source_path),$(def_file_name))
16
17endif
18
19
20# Expand a component definition rule for each found component
21$(foreach file,$(def_file_list),$(eval $(call def_file_rule,$(file))))