aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-20 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-20 20:20:20 +0200
commit4a8a933b4bdff4c8b7dda02dbb9faeb7a121ea93 (patch)
tree29ed2c917ab4fc8b09a167de91ed652a3e9c6bde /Makefile
parenteven better (diff)
downloadhardflip-d28cdfa6931c46c4af0f3f8d7cc210c13fde4c6f.tar.gz
hardflip-d28cdfa6931c46c4af0f3f8d7cc210c13fde4c6f.tar.bz2
hardflip-d28cdfa6931c46c4af0f3f8d7cc210c13fde4c6f.tar.xz
hardflip-d28cdfa6931c46c4af0f3f8d7cc210c13fde4c6f.tar.zst
hardflip-d28cdfa6931c46c4af0f3f8d7cc210c13fde4c6f.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 586dda7..1290b1d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,26 +20,31 @@ TARGET := hf
SHELL := /bin/sh
SRC_DIR := ./src/
SRC_NAME := *.go
-CONF_DIR := ./src/
+MAN_DIR := ./man/
SRC := $(addprefix ${SRC_DIR}, ${SRC_NAME})
DEST := /usr
.DEFAULT_GOAL := ${TARGET}
run: ${SRC}
- go run ${SRC_DIR} -qwe
+ go run ${SRC_DIR}
${TARGET}: ${SRC}
go build -o ${TARGET} ${SRC_DIR}
install:
mkdir -p ${DEST}/bin
- cp -f ${TARGET} ${DEST}/bin
- # man shit
- # mkdir -p $(DESTDIR)/share/man/man1
- # cp -f man/lowbat.1 $(DESTDIR)/share/man/man1/lowbat.1
+ cp -f ${TARGET} ${DEST}/bin/hf
+ mkdir -p ${DEST}/share/man/man1
+ gzip ${MAN_DIR}/hf.1
+ cp -f man/hf.1.gz ${DEST}/share/man/man1/hf.1.gz
+ gzip -d ${MAN_DIR}/hf.1.gz
+
+uninstall:
+ rm -f ${DEST}/bin/hf
+ rm -f ${DEST}/share/man/man1/hf.1.gz
clean:
go clean
rm -f ${TARGET}
-.PHONY: hf run clean
+.PHONY: hf run clean install uninstall