blob: 6d51ce69fe3924782a61cf4bad418ee7e4d926f0 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# ========================
# ===== ===============
# ====== ================
# ====== ================
# ====== ==== ==== ==
# ====== === == = =
# ====== === = == =
# = === === = == ====
# = === === = == = =
# == ===== ==== ==
# ========================
#
# go2work: Makefile
# Fri Apr 1 21:01:49 CEST 2022
# Joe
#
# GNU Makefile
default: build
SHELL := /bin/sh
OS = $(shell uname)
SRCS_DIR = src/
DATA_DIR = share/
TRGT_DIR = ./
SRCS_NAME = c_defs
SRCS_NAME += c_go2work
SRCS_NAME += c_player
SRCS_NAME += p_options
SRCS_NAME += u_checks
SRCS_NAME += u_prints
SRCS_NAME += u_utils
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
deps:
go get github.com/BurntSushi/toml@latest
build: deps
go build -o ${TARGET} ${SRCS}
clean:
go clean
${RM} ${TARGET}
.PHONY: build clean deps
# File prefixes info
# ------------------
# c_ -> core program
# p_ -> parsing
# u_ -> utils
|