diff options
-rw-r--r-- | ui/gtk/Makefile.am | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/gtk/Makefile.am b/ui/gtk/Makefile.am index da9ed2fad0..5d2342cdf7 100644 --- a/ui/gtk/Makefile.am +++ b/ui/gtk/Makefile.am @@ -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) \ |