-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 894 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
# Copied from build-tools git.mk reference implementation.
# https://github.com/ajay/build-tools/blob/main/makefiles/git.mk
# Keep in sync with the reference when updating.
REPO_ROOT := $(shell git rev-parse --show-toplevel)
git-submodule-update:
@## initialize and update git submodules
git submodule sync --recursive
git submodule update --init --recursive
ifneq ($(MAKECMDGOALS),git-submodule-update)
ifneq (,$(shell git submodule status --recursive 2>/dev/null | grep '^[-+]'))
$(error ERROR: git submodules not initialized or out of date; run `make git-submodule-update`)
endif
endif
################################################################################
-include $(REPO_ROOT)/site-common/makefiles/site.mk
################################################################################