From 14e059c9c3c4dde06c65d42f9f46b74af7eebc18 Mon Sep 17 00:00:00 2001 From: "Franklin \"Snaipe\" Mathieu" Date: Tue, 1 Nov 2016 00:15:10 +0100 Subject: [PATCH] makefile: Fixed install rule and added uninstall rule --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c377c99..272c38a 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,17 @@ LUA := lua -WS_PLUGIN_DIR := $(HOME)/.config/wireshark/plugins/ +WS_PLUGIN_DIR := $(HOME)/.config/wireshark/plugins bootstrap: wssdl.lua wssdl.lua: $(wildcard src/wssdl/*.lua) $(LUA) pack.lua src > wssdl.lua -install: $(HOME)/.config/wireshark/plugins/ | bootstrap - cp -f wssdl.lua $^ +install: | bootstrap + mkdir -p $(WS_PLUGIN_DIR) + cp -f wssdl.lua $(WS_PLUGIN_DIR) -$(HOME)/.config/wireshark/plugins/: - mkdir $@ +uninstall: + $(RM) $(WS_PLUGIN_DIR)/wssdl.lua clean: $(RM) wssdl.lua