If we have PYTHON use make-tap-reg.py (like we do on Windows): it's slightly

faster than the old shell-script version (~150 msec instead of ~500 msec on
my system).

svn path=/trunk/; revision=44971
This commit is contained in:
Jeff Morriss 2012-09-18 14:48:28 +00:00
parent fd6b314416
commit a97731bbcb
1 changed files with 8 additions and 3 deletions

View File

@ -52,9 +52,14 @@ MAINTAINERCLEANFILES = \
# The first argument is the directory in which the source files live.
# All subsequent arguments are the files to scan.
#
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) $(top_srcdir)/tools/make-tapreg-dotc
@echo Making wireshark-tap-register.c
@$(top_srcdir)/tools/make-tapreg-dotc wireshark-tap-register.c $(srcdir) $(WIRESHARK_TAP_SRC)
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) $(top_srcdir)/tools/make-tapreg-dotc $(top_srcdir)/tools/make-tap-reg.py
@if test -n "$(PYTHON)"; then \
echo Making wireshark-tap-register.c with python ; \
$(PYTHON) $(top_srcdir)/tools/make-tap-reg.py $(srcdir) taps $(WIRESHARK_TAP_SRC); \
else \
echo Making wireshark-tap-register.c; \
$(top_srcdir)/tools/make-tapreg-dotc wireshark-tap-register.c $(srcdir) $(WIRESHARK_TAP_SRC); \
fi
WIRESHARK_CLEAN_LIBGTKUI_SRC = \
$(WIRESHARK_GTK_SRC) \