Using sh in makefiles

Bill Silvert silvert at dalcs.UUCP
Fri Jun 27 08:09:28 AEST 1986


Would like advice on how to use shell commands (such as if...) in
makefiles.  I know that it all has to be on one line, but the only way I
can make a command work is through a kludge like:

test:
	echo "if x;then y;fi" | sh

which seems pretty roundabout.  Is this the only way to do it?



More information about the Comp.unix mailing list