From 4bb66ea2ef725837200c52c582e4643a8e0ed103 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 9 Jan 2016 15:46:21 +0100 Subject: [PATCH] Add 'make uninstall' target --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ea68756..5ea1746 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ MINORVERSION := 2-SNAPSHOT prefix := /usr/local sbin := $(prefix)/sbin -man8 := $(prefix)/share/man/man8/ +man8 := $(prefix)/share/man/man8 all: nethogs decpcap_test @@ -28,7 +28,7 @@ NCURSES_LIBS?=-lncurses tgz: clean cd .. ; tar czvf nethogs-$(VERSION).$(SUBVERSION).$(MINORVERSION).tar.gz --exclude-vcs nethogs/* -.PHONY: check +.PHONY: check uninstall check: echo "Not implemented" @@ -38,6 +38,10 @@ install: nethogs nethogs.8 install -d -m 755 $(DESTDIR)$(man8) install -m 644 nethogs.8 $(DESTDIR)$(man8) +uninstall: + rm $(DESTDIR)$(sbin)/nethogs + rm $(DESTDIR)$(man8)/nethogs.8 + test: test.cpp $(CXX) $(CXXFLAGS) $(LDFLAGS) test.cpp -o test -lpcap -lm ${NCURSES_LIBS} -DVERSION=\"$(VERSION)\" -DSUBVERSION=\"$(SUBVERSION)\" -DMINORVERSION=\"$(MINORVERSION)\"