rmyorston / pdpmake

Public domain POSIX make
https://frippery.org/make
Other
103 stars 10 forks source link

Support $^ macro #12

Closed illiliti closed 2 years ago

illiliti commented 2 years ago

See also: https://www.austingroupbugs.net/view.php?id=1520


TODO:

rmyorston commented 2 years ago

I've hacked on this a bit: 0001-Add-internal-macro-as-an-extension.txt.

Please try it.

illiliti commented 2 years ago

Is it just me or pdpmake can't run its own tests anymore? Running ./make test will always skip non-posix tests. Can you reproduce?

rmyorston commented 2 years ago

Tests work for me. The default build with extensions disabled skips the non-POSIX tests, but when extensions are enabled it's fine.

illiliti commented 2 years ago

I compiled pdpmake with -DENABLE_FEATURE_MAKE_EXTENSIONS=1 and tests are still being skipped. Note that if i do gmake test or bmake test, non-posix tests will work, but if i do ./make test, they won't work. Weird...

rmyorston commented 2 years ago

The runtest script detects whether extensions are present or not by seeing what the binary does when presented with a makefile containing VAR := value. Does your pdpmake binary handle that without error?

illiliti commented 2 years ago

For some reason it fails with: -:1: invalid macro assignment

illiliti commented 2 years ago

I've hacked on this a bit: 0001-Add-internal-macro-as-an-extension.txt.

Applied, thanks!

rmyorston commented 2 years ago

Patch applied, thanks!