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 | a85e703ec8a926b0bea299b8984b2bbed19e4f65 (patch) | |
tree | 7a60094b4c6a0a64c14064788fd8c30dc92b4aac /Makefile | |
parent | go (diff) | |
download | hardflip-a85e703ec8a926b0bea299b8984b2bbed19e4f65.tar.gz hardflip-a85e703ec8a926b0bea299b8984b2bbed19e4f65.tar.bz2 hardflip-a85e703ec8a926b0bea299b8984b2bbed19e4f65.tar.xz hardflip-a85e703ec8a926b0bea299b8984b2bbed19e4f65.tar.zst hardflip-a85e703ec8a926b0bea299b8984b2bbed19e4f65.zip |
bugfix
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -20,8 +20,10 @@ TARGET := hf SHELL := /bin/sh SRC_DIR := ./src/ SRC_NAME := *.go -SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME}) +CONF_DIR := ./src/ +SRC := $(addprefix ${SRC_DIR}, ${SRC_NAME}) DEST := /usr +XDG_CONFIG_HOME ?= $(HOME)/.config .DEFAULT_GOAL := ${TARGET} run: ${SRC} @@ -31,11 +33,14 @@ ${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 |