Skip to content

Compile issue for duplicate source names#509

Open
VyshnaviKB wants to merge 2 commits intomasterfrom
compile_issue_505
Open

Compile issue for duplicate source names#509
VyshnaviKB wants to merge 2 commits intomasterfrom
compile_issue_505

Conversation

@VyshnaviKB
Copy link
Collaborator

@VyshnaviKB VyshnaviKB commented Mar 5, 2026

When using makei c -f hello.rpgle (filename without path):
Searches recursively through all directories following SUBDIRS order defined in Rules.mk files, explores each subdirectory before moving to the next sibling
Returns first match - stops at the first Rules.mk that contains a matching target
EG:
if we have rules.mk as below:
SUBDIRS = dir1 dir2

Directory structure

dir1
-- Rules.mk
-- inner_dir
    -- Rules.mk
    -- FOO.PGM: foo.rpgle
dir2
-- Rules.mk
-- FOO.MODULE: foo.rpgle

Code will search the source file in dir1 first, thoroughly exploring all its subdirectories (including inner_dir). If not found, it will then search dir2.

image image image

Signed-off-by: VyshnaviKB <848pallavi@gmail.com>
Signed-off-by: VyshnaviKB <848pallavi@gmail.com>
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.

Sacrifice disambiguating duplicate source file names in different directories in order to allow compiling using the unqualified file name.

1 participant