Arguments for make

I know you can pass arguments like parameters, for example, make foo=bar. I am wondering if I can do this with only one argument, without the variable. For example, this is what I would like to do:

hello: echo "Hello, $1!"

In Bash, $1 is the first argument passed through a function. If I ran make hello 'world', then it should output Hello, world!. Is this possible?

Thanks in advance!
2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like