Matthias Andreas Benkard | f59e097 | 2018-04-10 22:01:34 +0200 | [diff] [blame] | 1 | # 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 |
| 13 | ifeq ($(def_file_list),) |
| 14 | |
| 15 | def_file_list := $(call find_files,$(source_path),$(def_file_name)) |
| 16 | |
| 17 | endif |
| 18 | |
| 19 | |
| 20 | # Expand a component definition rule for each found component |
| 21 | $(foreach file,$(def_file_list),$(eval $(call def_file_rule,$(file)))) |