add uninstall in makefile
This commit is contained in:
parent
caf5bf87dc
commit
73963e2a85
6
Makefile
6
Makefile
@ -1,8 +1,14 @@
|
|||||||
all:
|
all:
|
||||||
@echo "Run 'make install' for installation."
|
@echo "Run 'make install' for installation."
|
||||||
|
@echo "Run 'make uninstall' for uninstallation."
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp create_ap /usr/bin/create_ap
|
cp create_ap /usr/bin/create_ap
|
||||||
[ ! -d /lib/systemd/system ] || cp create_ap.service /lib/systemd/system
|
[ ! -d /lib/systemd/system ] || cp create_ap.service /lib/systemd/system
|
||||||
mkdir -p /usr/share/bash-completion/completions
|
mkdir -p /usr/share/bash-completion/completions
|
||||||
cp bash_completion /usr/share/bash-completion/completions/create_ap
|
cp bash_completion /usr/share/bash-completion/completions/create_ap
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm /usr/bin/create_ap
|
||||||
|
[ ! -f /lib/systemd/system/create_ap.service ] || rm /lib/systemd/system/create_ap.service
|
||||||
|
rm /usr/share/bash-completion/completions/create_ap
|
||||||
|
Loading…
Reference in New Issue
Block a user