Makefile
.source: script =
.source:
@$(foreach FUNCTION,$(shell source $(script) && declare -F | awk '{print $$3}'), \
$(eval $(FUNCTION) := $(shell echo ". $(SCRIPT); $(FUNCTION)")) \
)
.source: script =
.source:
@$(foreach FUNCTION,$(shell source $(script) && declare -F | awk '{print $$3}'), \
$(eval $(FUNCTION) := $(shell echo ". $(SCRIPT); $(FUNCTION)")) \
)