-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (34 loc) · 1.25 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
default_target: all
.PHONY: update_all clone_all bedrock2_noex fiat2 all clean_bedrock2 clean_fiat2 clean clean_deps clean_all install_bedrock2_noex install_fiat2 install
clone_all:
git submodule update --init --recursive
update_all:
git submodule update --recursive
REL_PATH_OF_THIS_MAKEFILE:=$(lastword $(MAKEFILE_LIST))
ABS_ROOT_DIR:=$(abspath $(dir $(REL_PATH_OF_THIS_MAKEFILE)))
# use cygpath -m because Coq on Windows cannot handle cygwin paths
ABS_ROOT_DIR:=$(shell cygpath -m '$(ABS_ROOT_DIR)' 2>/dev/null || echo '$(ABS_ROOT_DIR)')
BEDROCK2_DIR ?= $(ABS_ROOT_DIR)/bedrock2/
export BEDROCK2_DIR
SORTING_DIR ?= $(ABS_ROOT_DIR)/coq-stdlib-edits/
bedrock2_noex:
$(MAKE) -C $(BEDROCK2_DIR) bedrock2_noex
clean_bedrock2:
$(MAKE) -C $(BEDROCK2_DIR) clean_bedrock2
install_bedrock2_noex:
$(MAKE) -C $(BEDROCK2_DIR) install_bedrock2_noex
sorting:
$(MAKE) -C $(SORTING_DIR)
clean_sorting:
$(MAKE) -C $(SORTING_DIR) clean
fiat2: bedrock2_noex sorting
$(MAKE) -C $(ABS_ROOT_DIR)/fiat2
clean_fiat2:
$(MAKE) -C $(ABS_ROOT_DIR)/fiat2 clean
install_fiat2:
$(MAKE) -C $(ABS_ROOT_DIR)/fiat2 install
all: bedrock2_noex fiat2
clean: clean_fiat2
clean_deps: clean_bedrock2 clean_sorting
clean_all: clean_deps clean
install: install_bedrock2_noex install_fiat2