summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/makefile/makefile.lua
diff options
context:
space:
mode:
authorRoy Ivy III <[email protected]>2018-10-09 13:09:23 -0500
committerRoy Ivy III <[email protected]>2018-10-09 13:09:23 -0500
commitca7b50a40cf7c120d49ca8164f9a54c289dd5743 (patch)
tree1c6fb7fc110fee104b49326dceb578faf0dbe2be /xmake/plugins/project/makefile/makefile.lua
parentd4a0b79c1b033acf0fb9d5f305c135b3f6c6ae2a (diff)
fix makefile use of null device for windows
.# Discussion On the Windows platform, "NUL" is the null device which discards its input (analogous to "/dev/null" on the *nix platform).
Diffstat (limited to 'xmake/plugins/project/makefile/makefile.lua')
-rw-r--r--xmake/plugins/project/makefile/makefile.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/project/makefile/makefile.lua b/xmake/plugins/project/makefile/makefile.lua
index b2bfa76f0..2ea69d20a 100644
--- a/xmake/plugins/project/makefile/makefile.lua
+++ b/xmake/plugins/project/makefile/makefile.lua
@@ -39,7 +39,7 @@ end
function _mkdir(makefile, dir)
if is_plat("windows") then
- makefile:print("\t-@mkdir %s > /null 2>&1", dir)
+ makefile:print("\t-@mkdir %s > NUL 2>&1", dir)
else
makefile:print("\t@mkdir -p %s", dir)
end
@@ -50,7 +50,7 @@ function _cp(makefile, sourcefile, targetfile)
-- copy file
if is_plat("windows") then
- makefile:print("\t@copy /Y %s %s > /null 2>&1", sourcefile, targetfile)
+ makefile:print("\t@copy /Y %s %s > NUL 2>&1", sourcefile, targetfile)
else
makefile:print("\t@cp %s %s", sourcefile, targetfile)
end
@@ -62,9 +62,9 @@ function _tryrm(makefile, filedir)
-- remove it
if is_plat("windows") then
if os.isdir(filedir) then
- makefile:print("\t@rmdir /S /Q %s > /null 2>&1", filedir)
+ makefile:print("\t@rmdir /S /Q %s > NUL 2>&1", filedir)
elseif os.isfile(filedir) then
- makefile:print("\t@del /F /Q %s > /null 2>&1", filedir)
+ makefile:print("\t@del /F /Q %s > NUL 2>&1", filedir)
end
else
if os.isdir(filedir) then