-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
41 lines (29 loc) · 1.04 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
# Check Makefile.config.template if you want to override some of the flags
# in this Makefile.
ifndef ROOT_DIR
ROOT_DIR:=$(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST)))))
endif
CURR_DIR:=$(realpath $(shell pwd))
YEAR?=2020
include $(ROOT_DIR)/makefiles/functions.mk
include $(ROOT_DIR)/makefiles/variables.mk
include $(ROOT_DIR)/makefiles/mlang.mk
include $(ROOT_DIR)/makefiles/c_backend.mk
-include $(ROOT_DIR)/mlang-deps/makefiles/svn.mk
-include $(ROOT_DIR)/mlang-deps/makefiles/dgfip_backend.mk
.PHONY: default \
create-switch init-without-switch init deps \
format dune build build-static \
doc \
test tests quick_test test_one \
calc_dir info_c calc_o dgfip_c_backend compile_dgfip_c_backend \
backend_tests test_dgfip_c_backend \
clean_backend clean_backend_c clean_backend_exe clean_backend_tmp clean_backend_res clean_backend_all
FORCE:
.DEFAULT_GOAL:=default
default: FORCE build
all: FORCE quick_test tests test_dgfip_c_backend
clean: FORCE
$(call make_in,$(DGFIP_DIR),clean_backend_all)
rm -f doc/doc.html
dune clean