From 897e9772f3e009c1225c9d306c634eb458d9083c Mon Sep 17 00:00:00 2001 From: Ward Nakchbandi Date: Thu, 9 Mar 2023 22:50:35 +0300 Subject: [PATCH] fix makefile #2 --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d109b99..09c7d4e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ -.DEFAULT_GOAL := build -build: - go build -ldflags="-s -w" -o pikman -install: +all: + true + ++install: mkdir -p $(DESTDIR)/usr/bin/ - install -m 755 pikman $(DESTDIR)/usr/bin/ + go build -ldflags="-s -w" -o $(DESTDIR)/usr/bin/pikman + chmod 755 $(DESTDIR)/usr/bin/pikman