forked from owerdogan/whoami-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 1.05 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
tool_name=kali-whoami
src_dir=/usr/share
trigger_dir=/usr/bin
install:
install -m 755 kali-whoami $(trigger_dir)
mkdir -p $(src_dir)/$(tool_name)/backups
cp -vr assets $(src_dir)/$(tool_name)
cp -vr $(src_dir)/$(tool_name)/assets/kali-whoami.desktop /usr/share/kali-menu/applications/
mv -v $(src_dir)/$(tool_name)/assets/kali-whoami.desktop /usr/share/applications/
uninstall:
rm -Rf $(trigger_dir)/$(tool_name)
rm -Rf $(src_dir)/$(tool_name)
rm -Rf $(src_dir)/kali-menu/applications/kali-whoami.desktop
rm -Rf $(src_dir)/applications/kali-whoami.desktop
reinstall:
rm -Rf $(trigger_dir)/$(tool_name)
rm -Rf $(src_dir)/$(tool_name)
rm -Rf $(src_dir)/kali-menu/applications/kali-whoami.desktop
rm -Rf $(src_dir)/applications/kali-whoami.desktop
install -m 755 kali-whoami $(trigger_dir)
mkdir -p $(src_dir)/$(tool_name)/backups
cp -vr assets $(src_dir)/$(tool_name)
cp -vr $(src_dir)/$(tool_name)/assets/kali-whoami.desktop /usr/share/kali-menu/applications/
mv -vr $(src_dir)/$(tool_name)/assets/kali-whoami.desktop /usr/share/applications/