-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
46 lines (37 loc) · 1.36 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
#!/usr/bin/env bash
# Variable
PROJECT := sawa
COMMAND := sawa
COMMAND_JW := ꦱꦮ
REMOVE_CMD := rm
MAKEDIR_CMD := mkdir
COPY_CMD := cp
RECURSIVE_FLAG := -r
RECURSIVE_FINAL_FLAG := -rf
.PHONY : install clean make_dir copy_dir move_cmd print_status
install: clean make_dir copy_dir move_cmd print_status
make_dir:
@mkdir ${HOME}/${PROJECT}
@mkdir ${HOME}/${PROJECT}/bin
@mkdir ${HOME}/${PROJECT}/sawa
copy_dir:
@cp -r bin/* ${HOME}/${PROJECT}/bin
@cp -r sawa/* ${HOME}/${PROJECT}/sawa
@cp start.py ${HOME}/${PROJECT}
# Adding class path
#export PATH=${HOME}/${PROJECT}/bin:$PATH
move_cmd:
@mv ${HOME}/${PROJECT}/bin/cmd.sh ${HOME}/${PROJECT}/bin/${COMMAND}
@chmod +x ${HOME}/${PROJECT}/bin/${COMMAND}
# @ln ${HOME}/${PROJECT}/bin/${COMMAND} ${HOME}/${PROJECT}/bin/ي
@ln -s ${HOME}/${PROJECT}/bin/${COMMAND} /usr/local/bin/${COMMAND}
@ln -s ${HOME}/${PROJECT}/bin/${COMMAND} /usr/local/bin/${COMMAND_JW}
print_status:
@echo "Installation successful"
@echo "ꦮꦸꦱ꧀ꦏꦱꦶꦭ꧀ꦏꦲꦶꦤ꧀ꦱ꧀ꦠꦭ꧀"
# @echo "Next Add 'export PATH=${HOME}/${PROJECT}/bin:\$$PATH' to your .bash_profile or .bashrc"
# @echo " '.bash_profile ꦲꦸꦠꦮ .bashrc ꦤꦁ 'export PATH=${HOME}/${PROJECT}/bin:\$$PATH' ꦱꦧꦚ꧀ꦗꦸꦂꦫꦺꦤꦩ꧀ꦧꦃꦏꦺ"
clean:
@rm -rf ${HOME}/${PROJECT}
@rm -f /usr/local/bin/${COMMAND}
@rm -f /usr/local/bin/${COMMAND_JW}