diff options
| author | Paul Buetow <git@mx.buetow.org> | 2020-12-29 08:34:04 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2020-12-29 08:34:04 +0000 |
| commit | 0099a7ab9e1d28300c69c3b50b4ebe1cde9a8cbc (patch) | |
| tree | c9f0dfa884927079de309b68c48224f4b0f00d0d /Makefile | |
| parent | cab8f9f1e1576dbe42b6e88a5c9c3d14b00d9a37 (diff) | |
Make Linux ACL support optional, as it requires CGo and makes the binary less portable
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
