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

Add new make variable to seperate build library and target library #20

Open
worksofliam opened this issue Dec 24, 2023 · 0 comments
Open
Labels
documentation Improvements or additions to documentation enhancement New feature or request make Specific to makefile generation

Comments

@worksofliam
Copy link
Member

We need to have separate variables to allow gmake to look at objects in a one library but build in a different one. For example:

  • BASE_LIB will default to BIN_LIB for backwards compatibility.
  • this supports the standard git flow that is branch. You might have main which is library PRODAPP. This would be the BASE_LIB variable.
  • Then when the user makes a new branch, they will use a new BIN_LIB but keep the BASE_LIB
BIN_LIB=VS12345
BASE_LIB=$(BIN_LIB)

/QSYS.LIB/$(BASE_LIB)/THEOBJ.PGM: qrpglesrc/theobj.pgm.rpgle
  system "CRTBNDRPG PGM($(BIN_LIB)) ..."

They have a .env like this:

BIN_LIB=&BRANCHLIB
BASE_LIB=&CURLIB
@worksofliam worksofliam added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 24, 2023
@worksofliam worksofliam added the make Specific to makefile generation label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request make Specific to makefile generation
Projects
None yet
Development

No branches or pull requests

1 participant