make bug (paths)
Posted: Fri Jul 20, 2018 6:31 pm
I encountered a bug in make 53.3 that was uploaded to OS4Depot last summer. I'm assuming it was intended to be part of the SDK since Solie uploaded it. I hope he's still monitoring these forums.
If a makefile rule has a prerequisite (file.c) preceed by a parent path like this:
ftbase.ppc.o: ../../src/base/ftbase.c
<tab>$(CC) -c $(CFLAGS) -o $@ ../../src/base/ftbase.c
make 53.3 reports this error:
make: *** No rule to make target `../../src/base/ftbase.c', needed by `ftbase.ppc.o'. Stop.
The problem is with ' ../../ ' in the rule. GCC has no problem with the path on the compile line.
There is no such problem with make 53.1; it compiles the file with no problems.
Can someone file a bug report and get make 53.1 fixed?
If a makefile rule has a prerequisite (file.c) preceed by a parent path like this:
ftbase.ppc.o: ../../src/base/ftbase.c
<tab>$(CC) -c $(CFLAGS) -o $@ ../../src/base/ftbase.c
make 53.3 reports this error:
make: *** No rule to make target `../../src/base/ftbase.c', needed by `ftbase.ppc.o'. Stop.
The problem is with ' ../../ ' in the rule. GCC has no problem with the path on the compile line.
There is no such problem with make 53.1; it compiles the file with no problems.
Can someone file a bug report and get make 53.1 fixed?