diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-24 15:21:52 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-24 15:21:52 +0100 |
commit | 8df61d562ccf757e9d47019d403e41597b8ea018 (patch) | |
tree | f542c1ffea7a405b36018170e09e5d6eb3e6dfb9 /Makefile | |
download | go2work-8df61d562ccf757e9d47019d403e41597b8ea018.tar.gz go2work-8df61d562ccf757e9d47019d403e41597b8ea018.tar.bz2 go2work-8df61d562ccf757e9d47019d403e41597b8ea018.tar.xz go2work-8df61d562ccf757e9d47019d403e41597b8ea018.tar.zst go2work-8df61d562ccf757e9d47019d403e41597b8ea018.zip |
First commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..809f6b8 --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +# ======================== +# ===== =============== +# ====== ================ +# ====== ================ +# ====== ==== ==== == +# ====== === == = = +# ====== === = == = +# = === === = == ==== +# = === === = == = = +# == ===== ==== == +# ======================== +# +# go2work: Makefile +# Thu Mar 24 15:00:55 CET 2022 +# Joe +# +# GNU Makefile + +default: run + +SHELL := /bin/sh +OS = $(shell uname) + +SRCS_DIR = src/ +DATA_DIR = share/ +TRGT_DIR = ./ + +SRCS_NAME = c_go2work +SRCS_NAME += c_player + +SRCS = $(addprefix ${SRCS_DIR}, $(addsuffix .go, ${SRCS_NAME})) + +TRGT_NAME = go2work +TARGET = $(addprefix ${TRGT_DIR}, ${TRGT_NAME}) + +MKDIR = mkdir -p +RMDIR = rmdir +RM = rm -rf + +build: + go build -o ${TARGET} ${SRCS} + +clean: + ${RM} ${TARGET} + +run: + go run ${SRCS} + +tools: + ${MAKE} --no-print-directory -C ${TOOLS_DIR} all + +.PHONY: build run + +# File prefixes info +# ------------------ +# c_ -> core program related |