-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (47 loc) · 1.71 KB
/
Makefile
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
# Makefile for richtong/lib
#
# Release tag
TAG=0.9
# adjust this for where ./src/lib is and add your own
# Note that current directory is always included so you can
# can insert your own include in the CWD if you want to override
# https://runebook.dev/en/docs/gnu_make/include
# this directive does not seem to work
# if you do not have WS_DIR set use a relative path
# https://www.gnu.org/software/make/manual/html_node/Special-Variables.html
# note that INCLUDE_DIRS is a read-only list so we need our own variable
INCLUDE_DIRS ?= $(WS_DIR)/git/src/lib
# INCLUDE_DIRS ?= $(.INCLUDE_DIRS)
# adjust for your org
ORG ?= tne
## Local directory Make commands
## ----------
## test: test the library
.PHONY: test
test:
@echo "insert test code here..."
## clean: remove the build directory
.PHONY: clean
clean:
@echo "insert clear code here..."
## all: build all
.PHONY: all
# list these in reverse order so the most general is last
# Adjust these assuming this is a ./src submodule
# https://www.gnu.org/software/make/manual/html_node/Foreach-Function.html
# Note that - means to ignore errors, but this is actually checks
# LIB_PATH ?= ../lib
-include $(INCLUDE_DIRS)/include.mk
# the first dash means ignore errors
-include $(INCLUDE_DIRS)/include.ai.mk
# -include $(INCLUDE_DIRS)/include.docker.mk
# -include $(INCLUDE_DIRS)/include.gcp.base.mk
# -include $(INCLUDE_DIRS)/include.gcp.mk
# -include $(INCLUDE_DIRS)/include.hugo.mk
# -include $(INCLUDE_DIRS)/include.jupyter.mk
# -include $(INCLUDE_DIRS)/include.node.mk
# -include $(INCLUDE_DIRS)/include.python.mk
# -include $(INCLUDE_DIRS)/include.rhash.mk
# -include $(INCLUDE_DIRS)/airflow.mk
# normally your organization stuff appears last
-include $(INCLUDE_DIRS)/include.$(ORG).mk