aboutsummaryrefslogtreecommitdiffstats
path: root/default.o.do
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-05-31 17:08:09 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-05-31 17:38:33 +0100
commita88ad680422949dfe2d16a544a529649c6d07109 (patch)
treedf4d9463a099d4b87cd0f201f80db5c5d628ffad /default.o.do
parent13ceac75a8ed37ddc02df2b41627329c4da24b04 (diff)
downloadpack-a88ad680422949dfe2d16a544a529649c6d07109.tar.gz
pack-a88ad680422949dfe2d16a544a529649c6d07109.tar.xz
pack-a88ad680422949dfe2d16a544a529649c6d07109.zip
Update build system to the latest luiml version
Diffstat (limited to 'default.o.do')
-rw-r--r--default.o.do9
1 files changed, 4 insertions, 5 deletions
diff --git a/default.o.do b/default.o.do
index adab49b..121c3c0 100644
--- a/default.o.do
+++ b/default.o.do
@@ -1,5 +1,4 @@
-#!/bin/bash
-redo-ifchange "$0" "default.o.do" "$2.c"
-. loadargs "compile"
-gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c" || exit 1
-redo-ifchange "$2.d" $(sed ':a;/\\$/{s/[^:]*: //;N;s/ \\\n//;ba}' <"$2.d")
+#!/bin/bash -e
+redo-ifchange .compile .parse-depfile "${1%.o}.c"
+. ./.compile
+./.parse-depfile "${1%.o}.d" | tr '\n' '\0' | xargs -0 redo-ifchange