forked from CSAILVision/LabelMeAnnotationTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 927 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
# Makefile
# Sets up directory structure.
# Get LabelMe path settings:
LM_TOOL_HOME = $(shell pwd)/
all: setpath write_permissions
setpath:
@echo "Setting base href: $(LM_TOOL_HOME)";
$(shell cat ./annotationTools/perl/globalvariables.pl.base | sed -e s@LM_TOOL_HOME@$(LM_TOOL_HOME)@ > ./annotationTools/perl/globalvariables.pl)
@echo "Setting ./annotationTools/php/globalvariables.php: $(LM_TOOL_HOME)";
$(shell cat ./annotationTools/php/globalvariables.php.base | sed -e s@LM_TOOL_HOME@$(LM_TOOL_HOME)@ > ./annotationTools/php/globalvariables.php)
write_permissions:
@echo "Setting write permissions";
$(shell chmod -R 777 ./Annotations)
$(shell chmod -R 777 ./Masks)
$(shell chmod -R 777 ./Scribbles)
$(shell chmod -R 777 ./annotationCache/TmpAnnotations)
$(shell chmod -R 777 ./annotationCache/Logs/logfile.txt)
$(shell chmod -R 777 ./annotationTools/scribble)
$(shell chmod -R 777 ./annotationTools/php)