Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Makefile improvements with skeleton sources #640

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

Explorer09
Copy link
Contributor

  1. Correct skeleton headers dependencies
  2. Don't use BUILT_SOURCES for skeleton files
  3. Let "make mostlyclean" delete "*-flex.h"

The '*-flex.h' files are included by skeletons.c and not by other source
files. Correct the dependencies in the makefile.

(The error was introduced by 3603f03)

Signed-off-by: Kang-Che Sung <[email protected]>
State the dependencies of '*-flex.h' skeleton files properly and avoid
the 'BUILT_SOURCES' Automake variable, which often does more harm than
good (building files that are not needed for a particular target).

(Regression from commit e647249)

Also remove a GNU make wildcard function call as it's no longer needed.

Signed-off-by: Kang-Che Sung <[email protected]>
These skeleton header files can be easily regenerated.

(The things that "mostlyclean" shouldn't delete are files that are more
expensive to rebuild, e.g. library archives and linked executables.)

Signed-off-by: Kang-Che Sung <[email protected]>
@westes westes merged commit bab5ce6 into westes:master Apr 1, 2024
3 checks passed
@westes
Copy link
Owner

westes commented Apr 1, 2024

Thanks for this! It's on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants