blob: 013fabaeb480412dc74b6a49f6a57e5ee5f19d87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# ========================
# ===== ===============
# ====== ================
# ====== ================
# ====== ==== ==== ==
# ====== === == = =
# ====== === = == =
# = === === = == ====
# = === === = == = =
# == ===== ==== ==
# ========================
#
# hardflip: Makefile
# Tue Jan 23 11:16:43 2024
# Joe
#
# GNU Makefile
TARGET := hf
SHELL := /bin/sh
SRC_DIR := ./src/
SRC_NAME := *.go
SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME})
DEST := /usr/local/bin
.DEFAULT_GOAL := ${TARGET}
run: ${SRC}
go run ${SRC_DIR}
${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}
.PHONY: hf run clean
|