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