1996-11-02 10:05:24 -08:00
|
|
|
# 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`"
|
|
|
|
|
1996-11-25 07:54:53 -08:00
|
|
|
if "`exists Makefile.Mac`" != ""
|
1996-11-02 10:05:24 -08:00
|
|
|
set domake_files "-f Makefile.Mac"
|
1996-11-25 07:54:53 -08:00
|
|
|
else
|
|
|
|
set domake_files "-f Makefile"
|
|
|
|
end
|
|
|
|
|
|
|
|
if "`exists Makefile.Mac.depend`" != ""
|
|
|
|
set domake_files "{domake_files} -f Makefile.Mac.depend"
|
1996-11-02 10:05:24 -08:00
|
|
|
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}"
|