Skip to content

Smaller makefiles for partial builds #141

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

Merged
merged 13 commits into from
Jul 23, 2025
Merged

Conversation

worksofliam
Copy link
Member

@worksofliam worksofliam commented Jul 21, 2025

As per #137, makefiles were containing the entire project even if doing partial builds.

This improves the ways that makefiles can be generated:

  • so -bf make
    • Generates a makefile for the entire project, with the all target having most objects in it.
    • This is how it works today
  • so -bf make -f qrpglesrc/file.rpgle
    • Generates a makefile for the entire project, but all is the objects for the given source files (in -f)
    • This is how it works today
  • so -bf make -f qrpglesrc/file.rpgle -ip
    • Generates a makefile containing only targets for the specified objects and their children.
    • This results in a smaller makefile
  • so -bf make -f qrpglesrc/file.rpgle -ip -wp
    • Generates a makefile containing targets for the specific objects, their children and their parents

Examples

so -bf make -f qrpglesrc/newdept.pgm.sqlrpgle -ip

Generates:

all: .logs .evfevent library $(PREPATH)/NEWDEPT.PGM

$(PREPATH)/NEWDEPT.PGM: $(PREPATH)/NEWDEPT.FILE $(PREPATH)/DEPARTMENT.FILE

$(PREPATH)/NEWDEPT.PGM: qrpglesrc/newdept.pgm.sqlrpgle
   # ...

$(PREPATH)/NEWDEPT.FILE: qddssrc/newdept.dspf
   # ...

$(PREPATH)/DEPARTMENT.FILE: qsqlsrc/department.table
   # ...



@worksofliam worksofliam linked an issue Jul 21, 2025 that may be closed by this pull request
@worksofliam worksofliam merged commit b0305eb into main Jul 23, 2025
4 checks passed
@worksofliam worksofliam deleted the feature/makefile_partial_builds branch July 23, 2025 15:52
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.

Ensure -f is not generating huge makefiles
1 participant