From 0099a7ab9e1d28300c69c3b50b4ebe1cde9a8cbc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 29 Dec 2020 08:34:04 +0000 Subject: Make Linux ACL support optional, as it requires CGo and makes the binary less portable --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3