-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (47 loc) · 894 Bytes
/
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
53
54
55
56
57
58
##
## EPITECH PROJECT, 2020
## Indie Studio
## File description:
## Indie Studio Makefile
##
### ###
# This file is just a cli manager #
### ###
## Var definition ##
SHELL = /bin/sh
RM = rm -rf
## Output
BIN = bomberman
BUILD_DIR = build
DOC_DIR = ./Documentation
## Rules ##
.PHONY: all
all:
./build.sh
# Clean build
.PHONY: clean
clean:
$(RM) $(BUILD_DIR)
.PHONY: doc-clean
doc-clean:
$(RM) -r $(DOC_DIR)/html/
$(RM) -r $(DOC_DIR)/latex/
$(RM) $(DOC_DIR)/refman.pdf
# Clean build and binaries
.PHONY: fclean
fclean: clean doc-clean
$(RM) $(BIN)
.PHONY: re
re: fclean all
.PHONY: doc
doc:
doxygen $(DOC_DIR)/Doxyfile
# Generate PDF documentation
.PHONY: doc_pdf
doc-pdf: doc
make -C $(DOC_DIR)/latex/
cp $(DOC_DIR)/latex/refman.pdf $(DOC_DIR)
# Launch doxygen in firefox browser
.PHONY: doc-firefox
doc-firefox: doc
firefox $(DOC_DIR)/html/index.html