Error in Makefile

Post Reply
donmr
Posts: 1
Joined: Fri Jan 06, 2017 10:26 am
Operating System: Linux

Error in Makefile

Post by donmr » Fri Jan 06, 2017 10:34 am

There seems to be a small error in the Makefile.

Line 31 was:
test -d "${dd}" || mkdir -p "${dd}"; \
Make thinks this is using a make variable "dd" which is not set.
So this error is produced:
...
test -d "" || mkdir -p ""; \
done
mkdir: cannot create directory ‘’: No such file or directory
mkdir: cannot create directory ‘’: No such file or directory
mkdir: cannot create directory ‘’: No such file or directory
mkdir: cannot create directory ‘’: No such file or directory
mkdir: cannot create directory ‘’: No such file or directory
make: *** [install] Error 1
The fix is to use another "$" to tell make to pass the string "${dd}" to the shell.
test -d "$${dd}" || mkdir -p "$${dd}"; \
Don (old Unix/Linux programmer)

bll
Site Admin
Posts: 224
Joined: Fri Feb 28, 2014 2:12 am
Operating System: Linux
Contact:

Re: Error in Makefile

Post by bll » Fri Jan 06, 2017 10:46 am

Yes, thanks.
I will have a fixed package uploaded later today.
Brad

Post Reply