From 30f1269bc73dcda364def5e61d5dfd4a2c3ec6fc Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 18 Sep 2022 00:41:34 +0700 Subject: make: change the build and install directory The build task now create binary under _sys/usr/bin/, while the install task install the binary based on $DESTDIR environment variable, not $GOBIN. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c90fee7..cab823e 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,11 @@ test: go tool cover -html=cover.out -o cover.out build: - mkdir -p _bin/ - go build $(LDFLAGS) -o _bin/ ./cmd/... + mkdir -p _sys/usr/bin/ + go build $(LDFLAGS) -o _sys/usr/bin/ ./cmd/... install: build - install -m755 _bin/gotp $(GOBIN)/ + install _sys/usr/bin/gotp $(DESTDIR)/usr/bin/ serve-doc: ciigo serve _doc -- cgit v1.3