Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Makefile: Passing command line arguments to file inside Makefile

Tags:

Inside my Makfile I have the following,

smktestrun: smktest
    @../projects/test.sh

And I call this using:

Make smktestrun

But sometimes I need to pass an parameter/argument along with this file (test.sh)

So basically I would like:

test.sh -abc

But if i just pass the argument in the Makefile itself, the argument is not taken as simply the sheel script is executed.

So is there a way I could specify in the Makefile that an argument needs to be passed with that file?

Thanks.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!