-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (42 loc) · 1.05 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
# Makefile
# Ondřej Míchal <xmicha80>
NAME = fit-mqtt-client
ZIPFILE = 1-xmicha80-xgross11-65-35.zip
BUILD_DIR = ./build
SRC_DIR = ./src
DOC_DIR = ./doc
DATA_DIR = ./data
TARGET := $(BUILD_DIR)/$(NAME)
.PHONY: all run doc doxygen zip pack clean help
all:
cmake -B $(BUILD_DIR)
make -C $(BUILD_DIR) -j
run: all
@$(TARGET)
doxygen: doc
doc:
doxygen ./Doxyfile
pack: zip
zip:
zip -r $(ZIPFILE) README.md README.txt Doxyfile doxygen-awesome.css Makefile CMakeLists.txt resources.qrc $(SRC_DIR) $(DATA_DIR) examples
clean:
@rm -rf $(ZIPFILE) $(BUILD_DIR) $(DOC_DIR)
help:
@echo "make"
@echo " Execute 'make all'"
@echo "make all"
@echo " Build the project"
@echo "make run"
@echo " Run the program"
@echo "make doc"
@echo " Generate documentation using doxygen"
@echo "make doxygen"
@echo " Alias to 'make doc'"
@echo "make zip"
@echo " Create a zip file with the project"
@echo "make pack"
@echo " Alias to 'make zip'"
@echo "make clean"
@echo " Remove all unneeded files"
@echo "make help"
@echo " Show this screen"