aboutsummaryrefslogtreecommitdiffstats
path: root/.compile.do
diff options
context:
space:
mode:
Diffstat (limited to '.compile.do')
-rwxr-xr-x.compile.do9
1 files changed, 2 insertions, 7 deletions
diff --git a/.compile.do b/.compile.do
index 310ddd5..2a8d932 100755
--- a/.compile.do
+++ b/.compile.do
@@ -3,11 +3,6 @@ redo-ifchange .config.rc
. ./.config.rc
exec >"$3"
echo "# generated by $0"
-echo "CC=$CC"
-echo "CFLAGS=(${CFLAGS[@]@Q})"
-echo "CPPFLAGS=(${CPPFLAGS[@]@Q})"
+declare -p CC CFLAGS CPPFLAGS
echo '"$CC" -MMD -MF "${1%.o}.d" "${CFLAGS[@]}" "${CPPFLAGS[@]}" -c -o "$3" "${1%.o}.c"'
-command -v redo-stamp >/dev/null 2>&1 && redo-stamp <"$3"
-if command -v redo-stamp >/dev/null 2>&1; then
- redo-stamp <"$3"
-fi
+if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi