aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2024-01-21 12:09:39 -0700
committerJordan <me@jordan.im>2024-01-21 12:09:39 -0700
commit22a894c813bab20665ed5830e253d967aefb2e8b (patch)
tree57de00adeb25f18d3888faffab1f97ebace57783 /Makefile
downloadpipkin-22a894c813bab20665ed5830e253d967aefb2e8b.tar.gz
pipkin-22a894c813bab20665ed5830e253d967aefb2e8b.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c177b2e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+.POSIX:
+.SUFFIXES:
+
+GO = go
+RM = rm
+GOFLAGS = -o pipkin
+PREFIX = /usr/local
+
+goflags = $(GOFLAGS)
+
+all: pipkin
+
+pipkin:
+ $(GO) build $(goflags) -ldflags "-X main.buildPrefix=$(PREFIX)"
+
+clean:
+ $(RM) -f pipkin
+
+test:
+ $(GO) test -v ./...