9cedefdba9
The features might get copy-pasted (or even copied-and-pruned) when initialized; there's an unneccessary duplication of the function name in the line adding it to FEATURES list, thus prone to being forgotten and causing some havoc later on. It was wrong in the first place but tackling this with some double-colon rules ran into terminality issues, and further tortures were considered unneccessary. The current solution isn't perfect (no completely transparent function name registration upon corresponding target being called) but at least it is an improvement...
14 lines
491 B
Makefile
14 lines
491 B
Makefile
# this Makefile snippet gets included from toplevel distro.mk;
|
|
# it can add additional targets which could then be used there,
|
|
# and which can depend on other targets defined in any makefile
|
|
# included from toplevel Makefile
|
|
#
|
|
# see also toplevel functions.mk for the "add" function definition,
|
|
# and distro.mk for usage examples
|
|
#
|
|
# for somewhat more involved example, see syslinux feature
|
|
|
|
use/00example: sub/main use/anotherfeature
|
|
@$(call add_feature)
|
|
@$(call add,MAIN_PACKAGES,hello)
|