diff options
author | Joe <rbo@gmx.us> | 2024-05-20 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-20 20:20:20 +0200 |
commit | aabd410f94612ba55a9b93ba14ef18a8086c91c7 (patch) | |
tree | 9c6e25d6240bd5c5b71b0ce232a4440a52955d45 | |
parent | bugfix (diff) | |
download | hardflip-aabd410f94612ba55a9b93ba14ef18a8086c91c7.tar.gz hardflip-aabd410f94612ba55a9b93ba14ef18a8086c91c7.tar.bz2 hardflip-aabd410f94612ba55a9b93ba14ef18a8086c91c7.tar.xz hardflip-aabd410f94612ba55a9b93ba14ef18a8086c91c7.tar.zst hardflip-aabd410f94612ba55a9b93ba14ef18a8086c91c7.zip |
up
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | README.md | 9 |
2 files changed, 11 insertions, 6 deletions
@@ -23,7 +23,6 @@ SRC_NAME := *.go CONF_DIR := ./src/ SRC := $(addprefix ${SRC_DIR}, ${SRC_NAME}) DEST := /usr -XDG_CONFIG_HOME ?= $(HOME)/.config .DEFAULT_GOAL := ${TARGET} run: ${SRC} @@ -33,14 +32,11 @@ ${TARGET}: ${SRC} go build -o ${TARGET} ${SRC_DIR} install: - # mkdir -p ${DEST}/bin - # cp -f ${TARGET} ${DEST}/bin + 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 - # mkdir -p $(XDG_CONFIG_HOME)/hf - # cp -f $(CONF_DIR)/* $(XDG_CONFIG_HOME)/hf - # cp -f $(CONF_DIR)/config.sample.yml $(XDG_CONFIG_HOME)/config.yml clean: go clean @@ -35,4 +35,13 @@ DEST := /usr if you want to install stuff some other place +Example: + +```make +DEST := /usr/local +``` + +Will install bin and man in the /usr/local/bin /usr/local/share/man... dirs +BSD style + ## Config |