Mail Archives: djgpp/2001/12/23/06:12:12
> From: big10p AT hotmail DOT com (Chris Chadwick)
> Newsgroups: comp.os.msdos.djgpp
> Date: 20 Dec 2001 09:08:48 -0800
>
> The main reason I was thinking I'd have to use an alternative shell to
> command.com, was because of this example from the make docs:
>
> %.d: %.c
> $(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
> | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
> [ -s $@ ] || rm -f $@'
You can eat that cake and have it, too: add "SHELL = /bin/sh" line to
your Makefile, and Make will invoke Bash to run commands such as the
one above. You don't need to make Bash your interactive shell for
this to work. (You _do_ need to install the ported Bash, though.)
- Raw text -