aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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