Mail Archives: djgpp/1996/03/19/11:26:55
On Tue, 19 Mar 1996, Alexander V. Lukyanov wrote:
> I suppose it is easier for me just to remove './' :-)
> I just wanted to make a makefile compatible with Unix... Without ./ it
> will work if PATH includes current directory.
You can always run it with `redir' under DOS, and make `redir' be an
empty string under Unix (with a Make macro). `redir' does redirection
but without using redirection symbols, so Make doesn't call COMMAND.
Consider this (untested):
ifdef DJGPP
REDIR = redir -o myfile
else
REDIR =
endif
...
...
myprog: sources
$(REDIR) ./progname ....
`redir' will redirect the stdout of `progname' to `myfile'.
- Raw text -