From 73963e2a8574c47652c9279234239bd3bde51f91 Mon Sep 17 00:00:00 2001 From: zhanghaha <1605131099@qq.com> Date: Thu, 10 Dec 2015 14:31:07 +0800 Subject: [PATCH] add uninstall in makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c9ee17e..5d1bfd8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,14 @@ all: @echo "Run 'make install' for installation." + @echo "Run 'make uninstall' for uninstallation." install: cp create_ap /usr/bin/create_ap [ ! -d /lib/systemd/system ] || cp create_ap.service /lib/systemd/system mkdir -p /usr/share/bash-completion/completions 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