31 lines
634 B
Plaintext
31 lines
634 B
Plaintext
# domake
|
|
# Execute the output of "Make -f Makefile.Mac -f Makefile.Mac.depend"
|
|
# usage : domake [-quiet] <make arguments>
|
|
|
|
set echo 0
|
|
|
|
set tempfile "{TempFolder}temp-domake-`Date -n`"
|
|
|
|
if "`exists Makefile.Mac`" != ""
|
|
set domake_files "-f Makefile.Mac"
|
|
else
|
|
set domake_files "-f Makefile"
|
|
end
|
|
|
|
if "`exists Makefile.Mac.depend`" != ""
|
|
set domake_files "{domake_files} -f Makefile.Mac.depend"
|
|
end
|
|
|
|
if "{1}" == "-quiet"
|
|
shift
|
|
make {domake_files} {"Parameters"} >"{TempFile}"
|
|
else
|
|
echo 'set echo 1' >"{tempfile}"
|
|
make {domake_files} {"Parameters"} >>"{TempFile}"
|
|
end
|
|
|
|
unset domake_files
|
|
"{tempfile}"
|
|
|
|
Delete -i "{tempfile}"
|