aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-12 18:23:05 -0700
committerFranck Cuny <franck@fcuny.net>2023-03-12 18:23:05 -0700
commitc06d0f4e79edfe0a5ec650b2d2a8c1a441ed3226 (patch)
tree906d8eed426a82ae80f9644e4d5857d4b41cd11f /Makefile
downloaddns-updater-main.tar.gz
a CLI to update records for fcuny.xyzHEADmain
I want a simple solution to update the records for fcuny.xyz. The host that serves these records is a tailscale node, so I want to also query tailscale to get the IP for that host instead of hard coding the value. Some other information are hard coded, like the name of the project in GCP, etc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d69b7cb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+BIN := dns-updater
+
+build: go.mod main.go ts.go
+ @go build -o $(BIN)
+
+.PHONY: clean
+clean:
+ @rm -f "$(BIN)"