aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-29 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-29 20:20:20 +0200
commit9cf91a873ead62d82b168a581453b1e900279279 (patch)
tree838ccfbcf3ba00fc535c450bfa927e4c23d58943
parentgo (diff)
downloadhardflip-9cf91a873ead62d82b168a581453b1e900279279.tar.gz
hardflip-9cf91a873ead62d82b168a581453b1e900279279.tar.bz2
hardflip-9cf91a873ead62d82b168a581453b1e900279279.tar.xz
hardflip-9cf91a873ead62d82b168a581453b1e900279279.tar.zst
hardflip-9cf91a873ead62d82b168a581453b1e900279279.zip
up
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b8d8810..013faba 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ SHELL := /bin/sh
SRC_DIR := ./src/
SRC_NAME := *.go
SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME})
+DEST := /usr/local/bin
.DEFAULT_GOAL := ${TARGET}
run: ${SRC}
@@ -29,6 +30,13 @@ run: ${SRC}
${TARGET}: ${SRC}
go build -o ${TARGET} ${SRC_DIR}
+install: ${TARGET}
+ mkdir -p ${DEST}
+ cp -f ${TARGET} ${DEST}
+ # man shit
+ # mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ # cp -f man/lowbat.1 $(DESTDIR)$(MANPREFIX)/man1/lowbat.1
+
clean:
go clean
rm -f ${TARGET}