forked from firelab/behave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (34 loc) · 849 Bytes
/
Makefile
File metadata and controls
49 lines (34 loc) · 849 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
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
# Set the build directory
BUILD_DIR := build
# Set the source directory
SRC_DIR := src
# CMake configuration
CMAKE_CMD := cmake
# Doxygen configuration
DOXYGEN_CMD := doxygen
DOCS_DIR := docs
# Tests
MORTALITY_TEST_DIR := src/testMortality/
# Build and clean targets
compile: $(BUILD_DIR)
$(CMAKE_CMD) -B $(BUILD_DIR)
$(CMAKE_CMD) --build $(BUILD_DIR)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
clean:
rm -rf $(BUILD_DIR) $(DOCS_DIR)
test:
./build/testBehave
test_mortality:
./build/testMortality $(MORTALITY_TEST_DIR)/FOFEM_input.tre $(MORTALITY_TEST_DIR)/FOFEM_Mortality_Output.csv results.csv
# Generate Docs
gendocs:
$(DOXYGEN_CMD) Doxyfile
# Generate tags
gentags:
find . -type f \( -name "*.cpp" -o -name "*.h" \) | etags -
# Default target
all: compile
# Develop target
dev: gendocs gentags
.PHONY: clean gendocs gentags test