Skip to content

wrap OBJDIR creation in prevent gmake warning #2038

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions modules/gmake2/gmake2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@
_p('endif')
end

function gmake2.mkdirRules(dirname)
function gmake2.mkdirRules(dirname, before, after)
if before then _p(before) end
_p('%s:', dirname)
_p('\t@echo Creating %s', dirname)
gmake2.mkdir(dirname)
if after then _p(after) end
_p('')
end

Expand Down Expand Up @@ -327,7 +329,9 @@


function gmake2.objDirRules(cfg, toolset)
gmake2.mkdirRules("$(OBJDIR)")
local before = 'ifneq ($(OBJDIR),$(TARGETDIR))'
local after = 'endif'
gmake2.mkdirRules("$(OBJDIR)", before, after)
end


Expand Down