I\'m writing a Makefile, and some of the commands the makefile runs require a password. I\'d like to give the user the ability to either pass this in as a Makefile variable usi
To answer @joeb 's question:
$ make; echo "---Makefile---"; cat Makefile Password: test test ---Makefile--- all: first second PASSWORD ?= $(shell read -s -p "Password: " pass; echo $$pass) define formatted first: @echo $1 second: @echo $1 endef $(eval $(call formatted,$(PASSWORD)))