Skip to content

Conversation

petk
Copy link
Member

@petk petk commented Apr 13, 2019

Hello,

the generated_lists file is generated as a helper for build related makefile to include a list of *.m4 files prerequisites. When some *.m4 file changes the configure script is regenerated when buildconf is run. This can be simplified using dynamic expansion in the Makefile directly using the != operator so it avoids another file from being generated in the project root directory and shipping it with the PHP release or creating a dedicated gitignore rule.

Tested on Linux, mac, FreeBSD, Solaris...

Few more tests will be done, but this is pretty close to a finished PR.

Requires: GNU Make 4.0+
GNU Make 3.81+

Redacted: Now this patch works in GNU Make 3.81+ (or even 3.6) and also everyone else's make.

The generated_lists file is generated as a helper for build related
makefile to include a list of *.m4 files prerequisites. When some *.m4
file changes the configure script is regenerated when buildconf is
run. This can be simplified using dynamic expansion in the Makefile
directly so it avoids another file from being generated in the project
root directory and shipping it with the PHP release or creating a
dedicated gitignore rule.
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me :)

@bishopb
Copy link
Contributor

bishopb commented Apr 16, 2019

Seconded, I'm fine with GNU make. It's ubiquitous on UNIX and available on Windows (as nmake I believe).

@petk
Copy link
Member Author

petk commented Apr 16, 2019

Applied via b09fa9e to the PHP-7.4+. Thanks.

@petk petk closed this Apr 16, 2019
@petk petk deleted the patch-generated-lists branch April 16, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants