Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define sep
- endef
- define foo
- echo foo
- endef
- define bar
- echo bar
- endef
- define baz
- echo baz
- endef
- define main
- .PHONY: all
- all:
- $(foreach a,foo bar baz,$($(a))$(sep))
- endef
- $(eval $(main))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement