aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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}