aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-23 20:20:20 +0100
commit730bbd15c64cf8324267176dc6ced128559ad4cd (patch)
tree8aac0527cf3616f04624ebf14e552d07396ae080 /Makefile
parentgo (diff)
downloadhardflip-730bbd15c64cf8324267176dc6ced128559ad4cd.tar.gz
hardflip-730bbd15c64cf8324267176dc6ced128559ad4cd.tar.bz2
hardflip-730bbd15c64cf8324267176dc6ced128559ad4cd.tar.xz
hardflip-730bbd15c64cf8324267176dc6ced128559ad4cd.tar.zst
hardflip-730bbd15c64cf8324267176dc6ced128559ad4cd.zip
better org
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 4ef9ef1..b8d8810 100644
--- a/Makefile
+++ b/Makefile
@@ -11,20 +11,26 @@
# ========================
#
# hardflip: Makefile
-# Thu, 14 Dec 2023 15:33:28 +0100
+# Tue Jan 23 11:16:43 2024
# Joe
#
# GNU Makefile
-.DEFAULT_GOAL := hf
+TARGET := hf
SHELL := /bin/sh
-SRC := *.go
+SRC_DIR := ./src/
+SRC_NAME := *.go
+SRC = $(addprefix ${SRC_DIR}, ${SRC_NAME})
+.DEFAULT_GOAL := ${TARGET}
run: ${SRC}
- @go run ${SRC}
+ go run ${SRC_DIR}
-hf: ${SRC}
- @go build
+${TARGET}: ${SRC}
+ go build -o ${TARGET} ${SRC_DIR}
clean:
- @go clean
+ go clean
+ rm -f ${TARGET}
+
+.PHONY: hf run clean