From 1faa36f741ee194a6845656b0b1e5c79bf833152 Mon Sep 17 00:00:00 2001
From: Sergey Matveev <stargrave@stargrave.org>
Date: Wed, 9 Nov 2022 11:50:51 +0300
Subject: [PATCH] Makefile -> redo

---
 Makefile         | 9 ---------
 all.do           | 1 +
 clean.do         | 1 +
 dht-bootstrap.do | 2 ++
 4 files changed, 4 insertions(+), 9 deletions(-)
 delete mode 100644 Makefile
 create mode 100644 all.do
 create mode 100644 clean.do
 create mode 100644 dht-bootstrap.do

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 653e0ac..0000000
--- a/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-CFLAGS = -g -Wall
-LDLIBS =
-
-dht-bootstrap: dht-bootstrap.o
-
-all: dht-bootstrap
-
-clean:
-	-rm -f dht-bootstrap dht-bootstrap.o dht.o *~ core
diff --git a/all.do b/all.do
new file mode 100644
index 0000000..3b5334c
--- /dev/null
+++ b/all.do
@@ -0,0 +1 @@
+redo-ifchange dht-bootstrap
diff --git a/clean.do b/clean.do
new file mode 100644
index 0000000..42907ca
--- /dev/null
+++ b/clean.do
@@ -0,0 +1 @@
+rm -f dht-bootstrap
diff --git a/dht-bootstrap.do b/dht-bootstrap.do
new file mode 100644
index 0000000..4a3dee7
--- /dev/null
+++ b/dht-bootstrap.do
@@ -0,0 +1,2 @@
+redo-ifchange dht-bootstrap.c
+${CC:-cc} -std=c99 $CFLAGS -o $3 dht-bootstrap.c
-- 
2.50.0