-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ralf,
Ralf Wildenhues wrote: > > You can use > check_SCRIPTS = greptest.sh > This is what I finally settled on, based on your answers, and a little digging... - - - - - - - - - - - - - - - - - check_SCRIPTS = greptest.sh TESTS = $(check_SCRIPTS) greptest.sh: echo 'myprog | grep "myprog text"' > greptest.sh chmod +x greptest.sh CLEANFILES = greptest.sh - - - - - - - - - - - - - - - - - ...which isn't too bad. :) I don't know why the chmod command didn't work the first time around. It seems that often when something like this doesn't work and you give up on it, then later you start thinking about it and gain a bit more "faith" in your original idea--you try it again, and presto! it works. Clearly, I had some syntax wrong the first time that slipped past me. > Note that some make implementations have a builtin implicit rule to > update greptest from greptest.sh (which may or may not affect your > package). > Oh, this explains why Autotools uses install-sh, rather than install.sh. Thanks, John -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIMZvWdcgqmRY/OH8RAserAKCFTOKf5eg6eW90ejPppTpdxAJ0VQCfR1SM Ez9zJFy2YLaCo5qNHvw1Elo= =M60O -----END PGP SIGNATURE-----