home · contact · privacy
Replace make build system with redo, serve erlehmann's redo as fallback.
[plomrogue] / build / default.o.do
diff --git a/build/default.o.do b/build/default.o.do
new file mode 100644 (file)
index 0000000..d6a4b91
--- /dev/null
@@ -0,0 +1,6 @@
+redo-ifchange compiler_flags
+. ./compiler_flags
+file=${1#build/}
+gcc $CFLAGS -o $3 -c ../src/${file%.o}.c -MD -MF $2.deps
+read DEPS <$2.deps
+redo-ifchange ${DEPS#*:}