diff options
author | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
commit | 730bbd15c64cf8324267176dc6ced128559ad4cd (patch) | |
tree | 8aac0527cf3616f04624ebf14e552d07396ae080 /Makefile | |
parent | go (diff) | |
download | hardflip-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-- | Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -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 |