From 0ea6fb85549b5fe54c20655e257aa6f7b69d93e7 Mon Sep 17 00:00:00 2001 From: David Underhill Date: Fri, 11 Jul 2008 18:07:00 -0700 Subject: [PATCH] can now do make install from this folder too --- utilities/wireshark_dissectors/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utilities/wireshark_dissectors/Makefile b/utilities/wireshark_dissectors/Makefile index 3ced920..cf82d04 100644 --- a/utilities/wireshark_dissectors/Makefile +++ b/utilities/wireshark_dissectors/Makefile @@ -3,8 +3,9 @@ # build a list of all sub-directories except the includes path PLUGIN_DIRS = $(shell ls -l | grep "^d" | cut -d: -f2- | cut -d\ -f2 | fgrep -v 'wireshark-1.0.0-includes') CLEAN_PLUGIN_DIRS = $(foreach dir,$(PLUGIN_DIRS),clean$(dir)) +INSTALL_PLUGIN_DIRS = $(foreach dir,$(PLUGIN_DIRS),install$(dir)) -.PHONY: all $(PLUGIN_DIRS) clean $(CLEAN_PLUGIN_DIRS) +.PHONY: all $(PLUGIN_DIRS) clean $(CLEAN_PLUGIN_DIRS) install $(INSTALL_PLUGIN_DIRS) # build all the plugins all: @@ -14,6 +15,10 @@ all: clean: @$(MAKE) --no-print-directory $(CLEAN_PLUGIN_DIRS) +# install all plugins +install: + @$(MAKE) --no-print-directory $(INSTALL_PLUGIN_DIRS) + # build the plugin in the specified directory using its default rule $(PLUGIN_DIRS): @$(MAKE) --no-print-directory -C $@ @@ -21,3 +26,7 @@ $(PLUGIN_DIRS): # cleans up the plugin in the specified directory using its 'clean' rule $(CLEAN_PLUGIN_DIRS): @$(MAKE) --no-print-directory -C `echo $@ | sed -e "s#^clean##"` clean + +# installs up the plugin in the specified directory using its 'install' rule +$(INSTALL_PLUGIN_DIRS): + @$(MAKE) --no-print-directory -C `echo $@ | sed -e "s#^install##"` install