in reply to Parameters to make-invoked script
I can't find any method to pass variables to the Makefile other than by the environment, but
$ cat echo.pl #!/usr/bin/perl print("$ARGV[0]\n"); $ cat Makefile testing: echo.pl $(TEXT) > $@ $ TEXT=moo make testing echo.pl moo > testing $ cat testing moo
I feel this meets your needs. If not, let us know how it doesn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parameters to make-invoked script
by Sixtease (Friar) on Jul 23, 2008 at 09:07 UTC | |
|
Re^2: Parameters to make-invoked script
by betterworld (Curate) on Jul 23, 2008 at 12:48 UTC |