summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2022-12-31 14:52:04 -0700
committerJordan <me@jordan.im>2022-12-31 14:52:04 -0700
commit7c1d3208374e36f2d3c3a16c10ab59adc98b46ba (patch)
tree6125eabbf1c3ee8c89b31267c1ade93b2c3bd820 /Makefile
downloadwhoami-7c1d3208374e36f2d3c3a16c10ab59adc98b46ba.tar.gz
whoami-7c1d3208374e36f2d3c3a16c10ab59adc98b46ba.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1f0220a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+.POSIX:
+.SUFFIXES:
+
+GO = go
+RM = rm
+GOFLAGS =
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+
+goflags = $(GOFLAGS)
+
+all: whoami
+
+whoami:
+ $(GO) build $(goflags)
+
+clean:
+ $(RM) -f whoami
+
+install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
+ cp -f whoami $(DESTDIR)$(BINDIR)
+