Added an option (-b) to specify directory containing binaries to use for
[obnox/wireshark/wip.git] / tools / Makefile.am
index a8de4bb7e417f75414ef42bafa7e2039486a3ed6..fd258dba77d440fedb2db50042806b8c38dfbbab 100644 (file)
@@ -96,12 +96,28 @@ EXTRA_DIST = \
        msnchat                                         \
        netscreen2dump.py                               \
        pkt-from-core.py                                \
+       runlex.sh                                       \
        unix2dos.pl                                     \
        win32-setup.sh                                  \
        wireshark_be.py                                 \
        wireshark_gen.py                                \
        yacc.py
 
+noinst_SCRIPTS = setuid-root.pl
+setuid-root.pl: setuid-root.pl.in Makefile
+       sed \
+               -e 's,@BIN_PREFIX\@,$(bindir),' \
+               -e 's,@TSHARK_BIN\@,$(tshark_bin)$(EEXT),' \
+               -e 's,@DUMPCAP_BIN\@,$(dumpcap_bin)$(EEXT),' \
+               < $(srcdir)/setuid-root.pl.in > setuid-root.pl
+       chmod +x setuid-root.pl
+
+CLEANFILES = \
+       *.pyc
+
+DISTCLEANFILES = \
+       setuid-root.pl
+
 MAINTAINERCLEANFILES = \
        Makefile.in