From aabd410f94612ba55a9b93ba14ef18a8086c91c7 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 20 May 2024 20:20:20 +0200 Subject: up --- Makefile | 8 ++------ README.md | 9 +++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 77c9f62..220a375 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 5643b19..aa75e79 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3