From 9ae8cac98238f8c05ed0aa105082ba51a3a6749c Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 17 May 2024 20:20:20 +0200 Subject: go --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 013faba..276836f 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ SHELL := /bin/sh SRC_DIR := ./src/ SRC_NAME := *.go SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME}) -DEST := /usr/local/bin +DEST := /usr .DEFAULT_GOAL := ${TARGET} run: ${SRC} @@ -30,12 +30,12 @@ run: ${SRC} ${TARGET}: ${SRC} go build -o ${TARGET} ${SRC_DIR} -install: ${TARGET} - mkdir -p ${DEST} - cp -f ${TARGET} ${DEST} +install: + mkdir -p ${DEST}/bin + cp -f ${TARGET} ${DEST}/bin # man shit - # mkdir -p $(DESTDIR)$(MANPREFIX)/man1 - # cp -f man/lowbat.1 $(DESTDIR)$(MANPREFIX)/man1/lowbat.1 + # mkdir -p $(DESTDIR)/share/man/man1 + # cp -f man/lowbat.1 $(DESTDIR)/share/man/man1/lowbat.1 clean: go clean -- cgit v1.2.3