Skip to content

Commit

Permalink
makefile: Fixed install rule and added uninstall rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Oct 31, 2016
1 parent 9e55b00 commit 14e059c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 14e059c

Please sign in to comment.