aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorРоман Донченко <dpb@corrigendum.ru>2014-08-03 23:47:42 +0400
committerEvan Huus <eapache@gmail.com>2014-08-09 20:23:39 +0000
commitdc748b1e7f1fc5c8e84966844a5185dd3ac5a0f2 (patch)
tree080ac7bbabbf6ebb09f38efe690ac334999c0eb5
parenta4a94af0f7c223c95eb1601054b62ecd0e16c61a (diff)
Now that Python is mandatory on Windows, remove checks for it from nmakefiles
Change-Id: I2ca6abb372ec4bda0af1aa40089082533a61df3a Reviewed-on: https://code.wireshark.org/review/3392 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
-rw-r--r--asn1/Makefile.inc.nmake10
-rw-r--r--epan/dissectors/Makefile.nmake22
-rw-r--r--plugins/asn1/Makefile.nmake13
-rw-r--r--plugins/docsis/Makefile.nmake13
-rw-r--r--plugins/ethercat/Makefile.nmake13
-rw-r--r--plugins/gryphon/Makefile.nmake13
-rw-r--r--plugins/irda/Makefile.nmake13
-rw-r--r--plugins/m2m/Makefile.nmake13
-rw-r--r--plugins/mate/Makefile.nmake13
-rw-r--r--plugins/opcua/Makefile.nmake13
-rw-r--r--plugins/profinet/Makefile.nmake13
-rw-r--r--plugins/unistim/Makefile.nmake13
-rw-r--r--plugins/wimax/Makefile.nmake13
-rw-r--r--plugins/wimaxasncp/Makefile.nmake13
-rw-r--r--plugins/wimaxmacphy/Makefile.nmake13
-rw-r--r--ui/cli/Makefile.nmake16
-rw-r--r--ui/gtk/Makefile.nmake13
17 files changed, 17 insertions, 213 deletions
diff --git a/asn1/Makefile.inc.nmake b/asn1/Makefile.inc.nmake
index e47c81a8fc..7e0ae10a80 100644
--- a/asn1/Makefile.inc.nmake
+++ b/asn1/Makefile.inc.nmake
@@ -32,7 +32,6 @@ PROTO_OPT = -p $(PROTOCOL_NAME)
!ENDIF
$(DISSECTOR): ../../tools/asn2wrs.py $(SRC_FILES) $(EXTRA_CNF)
-!IFDEF PYTHON
$(PYTHON) "../../tools/asn2wrs.py" \
$(A2W_FLAGS) \
$(PROTO_OPT) \
@@ -41,24 +40,15 @@ $(DISSECTOR): ../../tools/asn2wrs.py $(SRC_FILES) $(EXTRA_CNF)
-D . \
-O ../../epan/dissectors \
$(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
-!ELSE
- @echo Error: You need Python to use asn2wrs.py
- @exit 1
-!ENDIF
!IFDEF EXPORT_FILES
$(EXPORT_FILES): ../../tools/asn2wrs.py $(SRC_FILES) $(EXPORT_DEPENDS)
-!IFDEF PYTHON
$(PYTHON) "../../tools/asn2wrs.py" \
-E $(A2W_FLAGS) \
$(PROTO_OPT) \
-c ./$(PROTOCOL_NAME).cnf \
-D . \
$(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
-!ELSE
- @echo Error: You need Python to use asn2wrs.py
- @exit 1
-!ENDIF
!ENDIF
# Don't clean these up until/unless we start building them...
diff --git a/epan/dissectors/Makefile.nmake b/epan/dissectors/Makefile.nmake
index 35edf09baf..5266a47da2 100644
--- a/epan/dissectors/Makefile.nmake
+++ b/epan/dissectors/Makefile.nmake
@@ -66,37 +66,19 @@ packet-rrc.obj : packet-rrc.c
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "dissectors", to indicate that we should build
# a register.c file for libwireshark.
# All subsequent arguments are the files to scan.
#
-register.c: $(ALL_DISSECTORS_SRC) Makefile.common ..\..\tools\make-dissector-reg.py ..\..\tools\make-dissector-reg
-!IFDEF PYTHON
- @echo Making register.c (using python)
+register.c: $(ALL_DISSECTORS_SRC) Makefile.common ..\..\tools\make-dissector-reg.py
+ @echo Making register.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . dissectors $(ALL_DISSECTORS_SRC)
-!ELSE
- @echo Making register.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . dissectors $(ALL_DISSECTORS_SRC)
-!ENDIF
packet-ncp2222.c: ..\..\tools/ncp2222.py
-!IFDEF PYTHON
@echo Making packet-ncp2222.c
$(PYTHON) "../../tools/ncp2222.py" -o packet-ncp2222.c
-!ELSE
- @echo Faking packet-ncp2222.c...
- @echo Python is required to build the NCP disector
- @echo Hiding packet-ncp.c...
- mv packet-ncp.c packet-ncp.c.save
- touch packet-ncp.c $@
-!ENDIF
packet-ncp2222.obj: packet-ncp2222.inc
diff --git a/plugins/asn1/Makefile.nmake b/plugins/asn1/Makefile.nmake
index 6b8cf60419..3f1f2a5838 100644
--- a/plugins/asn1/Makefile.nmake
+++ b/plugins/asn1/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/docsis/Makefile.nmake b/plugins/docsis/Makefile.nmake
index 29088bdc55..0ce5b5513d 100644
--- a/plugins/docsis/Makefile.nmake
+++ b/plugins/docsis/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/ethercat/Makefile.nmake b/plugins/ethercat/Makefile.nmake
index efcb7da2d1..fce90ac41d 100644
--- a/plugins/ethercat/Makefile.nmake
+++ b/plugins/ethercat/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/gryphon/Makefile.nmake b/plugins/gryphon/Makefile.nmake
index b5bc9ec6df..33da907e49 100644
--- a/plugins/gryphon/Makefile.nmake
+++ b/plugins/gryphon/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/irda/Makefile.nmake b/plugins/irda/Makefile.nmake
index d13b42a3c3..13e868c491 100644
--- a/plugins/irda/Makefile.nmake
+++ b/plugins/irda/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/m2m/Makefile.nmake b/plugins/m2m/Makefile.nmake
index b566f98062..7402546521 100644
--- a/plugins/m2m/Makefile.nmake
+++ b/plugins/m2m/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/mate/Makefile.nmake b/plugins/mate/Makefile.nmake
index adfe0d2c80..f33ed6bee6 100644
--- a/plugins/mate/Makefile.nmake
+++ b/plugins/mate/Makefile.nmake
@@ -71,25 +71,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES) $(NODIST_REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES) $(NODIST_REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/opcua/Makefile.nmake b/plugins/opcua/Makefile.nmake
index ce27752704..fb1ceff873 100644
--- a/plugins/opcua/Makefile.nmake
+++ b/plugins/opcua/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/profinet/Makefile.nmake b/plugins/profinet/Makefile.nmake
index d431fcc680..852255e95c 100644
--- a/plugins/profinet/Makefile.nmake
+++ b/plugins/profinet/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/unistim/Makefile.nmake b/plugins/unistim/Makefile.nmake
index 5451ec04ce..feaef90593 100644
--- a/plugins/unistim/Makefile.nmake
+++ b/plugins/unistim/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/wimax/Makefile.nmake b/plugins/wimax/Makefile.nmake
index 981cf8f1d1..15a4616318 100644
--- a/plugins/wimax/Makefile.nmake
+++ b/plugins/wimax/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/wimaxasncp/Makefile.nmake b/plugins/wimaxasncp/Makefile.nmake
index 3a0d6beee3..d13d9030f2 100644
--- a/plugins/wimaxasncp/Makefile.nmake
+++ b/plugins/wimaxasncp/Makefile.nmake
@@ -69,25 +69,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES) $(NODIST_REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES) $(NODIST_REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/plugins/wimaxmacphy/Makefile.nmake b/plugins/wimaxmacphy/Makefile.nmake
index 0b4139a4ce..194d54337c 100644
--- a/plugins/wimaxmacphy/Makefile.nmake
+++ b/plugins/wimaxmacphy/Makefile.nmake
@@ -65,25 +65,14 @@ $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLU
# reason.
#
# Therefore, we use a script to generate the register.c file.
-# There are two versions of the script, a shell and a Python version.
-# The Python script runs faster, since it uses caching to speed up
-# repeated runs and doesn't invoke external processes, so we prefer
-# that if Python is available.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg.py
- @echo Making plugin.c (using python)
+ @echo Making plugin.c
@$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(REGISTER_SRC_FILES)
-!ELSE
-plugin.c: $(REGISTER_SRC_FILES) moduleinfo.h Makefile.common ../../tools/make-dissector-reg
- @echo Making plugin.c (using sh)
- @$(SH) ../../tools/make-dissector-reg . plugin $(REGISTER_SRC_FILES)
-!ENDIF
!ENDIF
diff --git a/ui/cli/Makefile.nmake b/ui/cli/Makefile.nmake
index 2fe092f7a8..b0b9c95646 100644
--- a/ui/cli/Makefile.nmake
+++ b/ui/cli/Makefile.nmake
@@ -40,27 +40,13 @@ libcliui.lib : ..\..\config.h $(TSHARK_TAP_OBJECTS) tshark-tap-register.obj
#
# We do this by grepping through sources.
#
-# The shell script runs slowly, as multiple greps and seds are run
-# for each input file; this is especially slow on Windows. Therefore,
-# if Python is present (as indicated by PYTHON being defined), we run
-# a faster Python script to do that work instead.
-#
# Formatting conventions: The name of the tap_listener_register_*
# routines must start in column zero, or must be preceded only by
# "void " starting in column zero, and must not be inside #if.
#
-!IFDEF PYTHON
tshark-tap-register.c: $(TSHARK_TAP_SRC) ..\..\tools\make-tap-reg.py
- @echo Making tshark-tap-register.c using python
- @$(PYTHON) ..\..\tools\make-tap-reg.py . tshark-taps $(TSHARK_TAP_SRC)
-!ELSE
-# The first argument is the name of the file to write.
-# The second argument is the directory in which the source files live.
-# All subsequent arguments are the files to scan.
-tshark-tap-register.c: $(TSHARK_TAP_SRC) ..\..\tools\make-tapreg-dotc
@echo Making tshark-tap-register.c
- @$(SH) ../../tools/make-tapreg-dotc tshark-tap-register.c . $(TSHARK_TAP_SRC)
-!ENDIF
+ @$(PYTHON) ..\..\tools\make-tap-reg.py . tshark-taps $(TSHARK_TAP_SRC)
clean:
rm -f $(TSHARK_TAP_OBJECTS) tshark-tap-register.obj libcliui.lib *.pdb \
diff --git a/ui/gtk/Makefile.nmake b/ui/gtk/Makefile.nmake
index d74f35b1ab..ace0823080 100644
--- a/ui/gtk/Makefile.nmake
+++ b/ui/gtk/Makefile.nmake
@@ -84,25 +84,14 @@ wsiconcap.h:
for %n in (16 24 32 48 64) do \
gdk-pixbuf-csource --raw --name=wsiconcap_%n_pb_data ../../image/wsiconcap%n.png >> $@
-# The shell script runs slowly, as multiple greps and seds are run
-# for each input file; this is especially slow on Windows. Therefore,
-# if Python is present (as indicated by PYTHON being defined), we run
-# a faster Python script to do that work instead.
-#
# The first argument is the directory in which the source files live.
# The second argument is "plugin", to indicate that we should build
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-!IFDEF PYTHON
wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../../tools/make-tap-reg.py
- @echo Making wireshark-tap-register.c (using python)
- @$(PYTHON) "../../tools/make-tap-reg.py" . taps $(WIRESHARK_TAP_SRC)
-!ELSE
-wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) ../../tools/make-tapreg-dotc Makefile.common
@echo Making wireshark-tap-register.c
- @$(SH) ../../tools/make-tapreg-dotc wireshark-tap-register.c . $(WIRESHARK_TAP_SRC)
-!ENDIF
+ @$(PYTHON) "../../tools/make-tap-reg.py" . taps $(WIRESHARK_TAP_SRC)
!IF "$(PORTAUDIO_VERSION)" == "18"
pa_lib.obj: $(PORTAUDIO_DIR)\pa_common\pa_lib.c