-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (33 loc) · 822 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
# SHELL := /usr/bin/zsh
all: install
SHELLRC = bashrc
install:
pip install pyDigitalWaveTools
pip install cmd2
pip install capstone
chmod +x vsh.py
mkdir -p ~/eda/vsh
cp vsh.py ~/eda/vsh/vsh
cp -r vcd_example ~/eda/vsh/
sed -i '/eda\/vsh/d' ~/.$(SHELLRC)
echo 'export PATH="$$HOME/eda/vsh/:$$PATH"' >> ~/.$(SHELLRC)
bash -c "source ~/.$(SHELLRC)"
@bash -c "source ~/.$(SHELLRC)"
install-zsh:
pip install pyDigitalWaveTools
pip install cmd2
pip install capstone
chmod +x vsh.py
mkdir -p ~/eda/vsh
cp vsh.py ~/eda/vsh/vsh
cp -r vcd_example ~/eda/vsh/
sed -i '/eda\/vsh/d' ~/.zshrc
echo 'export PATH="$$HOME/eda/vsh/:$$PATH"' >> ~/.zshrc
@zsh ~/.zshrc
uninstall:
sed -i '/eda\/vsh/d' ~/.$(SHELLRC)
sed -i '/eda\/vsh/d' ~/.zshrc
rm -rf ~/eda/vsh
clean:
rm -rf ~/eda/vsh
.PHONY: instal clean