summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2020-12-29 08:34:04 +0000
committerPaul Buetow <git@mx.buetow.org>2020-12-29 08:34:04 +0000
commit0099a7ab9e1d28300c69c3b50b4ebe1cde9a8cbc (patch)
treec9f0dfa884927079de309b68c48224f4b0f00d0d /Makefile
parentcab8f9f1e1576dbe42b6e88a5c9c3d14b00d9a37 (diff)
Make Linux ACL support optional, as it requires CGo and makes the binary less portable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 690bfc3..6d85347 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,21 @@
GO ?= go
all: test build
build:
+ifndef USE_ACL
${GO} build -o dserver ./cmd/dserver/main.go
+else
+ ${GO} build -tags linuxacl -o dserver ./cmd/dserver/main.go
+endif
${GO} build -o dcat ./cmd/dcat/main.go
${GO} build -o dgrep ./cmd/dgrep/main.go
${GO} build -o dmap ./cmd/dmap/main.go
${GO} build -o dtail ./cmd/dtail/main.go
install:
+ifndef USE_ACL
${GO} install ./cmd/dserver/main.go
+else
+ ${GO} install -tags linuxacl ./cmd/dserver/main.go
+endif
${GO} install ./cmd/dcat/main.go
${GO} install ./cmd/dgrep/main.go
${GO} install ./cmd/dmap/main.go
@@ -28,4 +36,8 @@ lint:
golint $$dir; \
done
test:
+ifndef USE_ACL
${GO} test ./... -v
+else
+ ${GO} test -tags linuxacl ./... -v
+endif