diff options
| author | ruki <[email protected]> | 2025-04-08 00:44:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:58 +0800 |
| commit | abd58c9c0e5043d73b127de9cd387e416bd5090f (patch) | |
| tree | 6194c2b72ac5a6f9a16b68147ec98753e987205f /xmake/plugins/project/make/makefile.lua | |
| parent | f72d519dfe7b3a3744660ed15c620dbd5344c16c (diff) | |
prepare targets for more generators
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 3d4d5507f..e123943de 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -687,10 +687,11 @@ function _add_clean(makefile, outputdir) end function make(outputdir) - - -- enter project directory local oldir = os.cd(os.projectdir()) + -- prepare targets + target_cmds.prepare_targets() + -- open the makefile local makefile = io.open(path.join(outputdir, "makefile"), "w") @@ -715,7 +716,5 @@ function make(outputdir) -- close the makefile makefile:close() - - -- leave project directory os.cd(oldir) end |
