-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.mk
24 lines (21 loc) · 869 Bytes
/
main.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_dir := $(notdir $(patsubst %/,%,$(dir $(realpath $(mkfile_path)/../))))
# Autoconf-style vars
top_builddir := $(basename $(patsubst %/,%,$(dir $(mkfile_path))))
top_srcdir ?= $(top_builddir)/src # Override this if your project differs
build_aux := $(top_builddir)/.uncommon-build/build-aux
# Include platform detection & main vars
include $(build_aux)/platform-detect.mk
include $(build_aux)/vars/main_vars.mk
include $(build_aux)/vars/ansicolor_vars.mk
include $(build_aux)/vars/emoji_vars.mk
# Language Specific includes
ifeq (go,$(PROJECT_LANG))
include $(build_aux)/vars/go_vars.mk
include $(build_aux)/go/multi-platform.mk
include $(build_aux)/go/lint.mk
include $(build_aux)/go/test.mk
endif
# Commonly uncommon targets
include $(build_aux)/uncommon-targets.mk
include $(build_aux)/help.mk