Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
135 user(s) are online (103 user(s) are browsing Forums)

Members: 0
Guests: 135

more...

Support us!

Headlines

 
  Register To Post  

GNU Make and VPATH
Just popping in
Just popping in


See User information
Has anyone else run into problems using VPATH when building with the GNU make on OS4Depot (make-bin.lha uploaded by Steven Solie)?

To me it seems like VPATH is totally ignored. Both make and gmake behave in the same way.

Go to top
Re: GNU Make and VPATH
Just popping in
Just popping in


See User information
@sTix

have you tried both unix and amigaos paths, most likely amigaos, one of them should work (and assuming you are running in abc-shell, I thinka). I don't think gmake, make should differ in that part.

Go to top
Re: GNU Make and VPATH
Just popping in
Just popping in


See User information
@trgswe

I tried both I'm afraid. But I just noticed that 3.81 included in the latest SDK works the way it should. Looks like something broke when going from 3.81 to 3.82.

Go to top
Re: GNU Make and VPATH
Just popping in
Just popping in


See User information
@sTix

noticed that VPATH can also be 'used/called' as vpath everything else is the same.

Go to top
Re: GNU Make and VPATH
Just popping in
Just popping in


See User information
@trgswe

Yes, vpath is more specific, using pattern rules, but the result is the same; it's ignored by 3.82 but works with 3.81.

Go to top
Re: GNU Make and VPATH
Site Builder
Site Builder


See User information
@sTix
Is there a way for me to reproduce it with a simple example, or it has to do with specific projects and depends on their complexity? I'd like to investigate the reasons behind this issue.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: GNU Make and VPATH
Just popping in
Just popping in


See User information
@walkero

It's pretty simple to reproduce.

Create a directory structure like this:

Quote:
7.RAM Disk:> list
src Dir ----rwed Today 20:48:13
build Dir ----rwed Today 20:48:33


In 'src' create something like this:

Quote:
7.RAM Disk:> type src/input
test


In 'build' create a Makefile like this:

Quote:
7.RAM Disk:> type build/Makefile
VPATH := ../src

output: input
cat $< > $@


Then if you use make 3.81 you'll get this, which is what you would expect:

Quote:
7.RAM Disk:build> make
cat ../src/input > output
7.RAM Disk:build> type output
test


But if you use 3.82 you get this:

Quote:
7.RAM Disk:build> make382
make382: *** No rule to make target `input', needed by `output'. Stop.


With 3.82 'input' can't be found despite VPATH being set.




Go to top
Re: GNU Make and VPATH
Site Builder
Site Builder


See User information
@sTix
Thank you for that example.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 152
The poll will close at 2025/12/1 12:00
2 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project