I am writing Makefile dist and install target. There are many files to copy. So i want to know whether gnu make support parameter like shell’.
In makefile, I want to something achieve this below.
cp src/server/{IPinfo_server, IPinfo_server.conf} IPinfo/server
Now i write like this below in makefile.
cp src/server/IPinfo_server IPinfo/server
cp src/server/IPinfo_server.conf IPinfo/server
Or may be i should write it in shell script?
PS: I tried to google it. But i don’t know how to describe the question. 🙁
PS1: The problem is there should not space in “IPinfo_server, IPinfo_server.conf”
Yes, it does.
It’s easy to test out.
In case it doesn’t work for you, try explicitly adding
SHELL = /bin/bashto your GNUMakefile.