aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 228b9cc761805aaa932284c8d33807fc83229e19 (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
# ========================
# =====    ===============
# ======  ================
# ======  ================
# ======  ====   ====   ==
# ======  ===     ==  =  =
# ======  ===  =  ==     =
# =  ===  ===  =  ==  ====
# =  ===  ===  =  ==  =  =
# ==     =====   ====   ==
# ========================
#
# go2work: Makefile
# Tue Mar 29 22:14:45 CEST 2022
# Joe
#
# GNU Makefile

default: build

SHELL		:= /bin/sh
OS			 = $(shell uname)

SRCS_DIR	 = src/
DATA_DIR	 = share/
TRGT_DIR	 = ./

SRCS_NAME	 = c_go2work
SRCS_NAME	+= c_player
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

build:
	go build -o ${TARGET} ${SRCS}

clean:
	${RM} ${TARGET}

run:
	go run ${SRCS}

.PHONY:	build clean run

# File prefixes info
# ------------------
# c_  -> core program
# u_  -> utils related