-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 826 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 826 Bytes
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
.PHONY: all install brew vendor clean
brew:
brew bundle
clean:
rm -rf $(shell pwd)/vendor
vendor: clean
@echo "Installing additional dependencies..."
git clone https://github.com/vulnersCom/nmap-vulners.git $(shell pwd)/vendor/nmap-vulners
git clone https://github.com/projectdiscovery/nuclei-templates $(shell pwd)/vendor/nuclei-templates
install: vendor
@echo "Intalling sb..."
mkdir -p $${HOME}/.sb/
@if [[ ! -d $${HOME}/.sb/commands/ ]]; then \
ln -s $(shell pwd)/commands/ $${HOME}/.sb/commands;\
else \
echo "$${HOME}/.sb/commands/ symlink already exists, skipping";\
fi
@if [[ ! -d $${HOME}/.sb/vendor/ ]]; then \
ln -s $(shell pwd)/vendor/ $${HOME}/.sb/vendor;\
else \
echo "$${HOME}/.sb/vendor/ symlink already exists, skipping";\
fi
sudo install sb /usr/local/bin
all: brew vendor install