I have a makefile where I want to read module name from input and then make directory based on it`s name. here is my code:
build:
@read -p "Enter Module Name:" module;
module_dir=./modules/$$module
mkdir -p $$module_dir/build;
But after setting module_dir, it contains only ./modules/ (with no module name concatenated).
What is wrong in my code?
thanks for your answers