diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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} |