$ 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