Mail Archives: djgpp/1994/04/13/13:27:51
Potter (rri!potter AT vtserf DOT cc DOT vt DOT edu) writes:
> > OBJPATH=h:
> > OBJ= $(OBJPATH)/file.o
> > all: $(OBJ)
> > echo hello
> >
> >
> > GNU make says it is expecting a % sign (due to the expanding OBJPATH to h:)
> > This is ugly for a make that is supposed to run under DOS.
>
> Has anyone come up with a solution to this problem? I know of a
> possible work around for one working with multiple local hard drives
> (the JOIN command). However my development environment envolves
> network drives, and join doesn't work with network drives (or
> atleast it didn't the last time I tried (c. v5.0)). Thanks.
For GNU make, you can escape the ':' with a leading backslash. This
is not ideal, because non-GNU makes will probably try to use a literal
backslash. But it should work.
--
Eric Backus
ericb AT lsid DOT hp DOT com
(206) 335-2495
- Raw text -