-
Notifications
You must be signed in to change notification settings - Fork 375
/
Makefile
37 lines (29 loc) · 1.17 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
GREEN = '\033[1;32m'
YELLOW = '\033[1;33m'
NOCOLOR = '\033[0m'
OPEN_MODEL_ZOO = omz
TOPTARGETS := all clean compile_model
SUBDIRS := $(wildcard */.)
INSTALL_PARAM := "yes"
EXIT_PARAM := "no"
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
@if [ "$(MAKECMDGOALS)" != "clean" ] || [ "$(MAKECMDGOALS)" = "all" ] || [ -z $(MAKECMDGOALS) ]; \
then \
$(MAKE) -C ${OPEN_MODEL_ZOO} INSTALL=${INSTALL_PARAM} EXIT_ON_REQ_NOT_MET=${EXIT_PARAM}; \
fi; \
$(eval INSTALL_PARAM = "no")
@$(MAKE) -C $@ $(MAKECMDGOALS) INSTALL=${INSTALL_PARAM} EXIT_ON_REQ_NOT_MET=${EXIT_PARAM}; \
echo $(GREEN)"\nAppZoo: "$(YELLOW)"Finished: making "$@ $(MAKECMDGOALS)"\n"$(NOCOLOR)
.PHONY: $(TOPTARGETS) $(SUBDIRS)
.PHONY: install_deps
install_deps:
./install_deps.sh
.PHONY: help
help:
@echo "\nPossible Make targets"
@echo $(YELLOW)" make help "$(NOCOLOR)"- shows this message"
@echo $(YELLOW)" make all "$(NOCOLOR)"- Makes all targets"
@echo $(YELLOW)" make clean "$(NOCOLOR)"- Removes all temp files from all directories"
@echo $(YELLOW)" make compile_model "$(NOCOLOR)"- Runs compile on all caffe/tensorflow models"
@echo $(YELLOW)" make install_deps "$(NOCOLOR)"- checks and installs software dependencies"