Add parsertab.pyc in clean target
[obnox/wireshark/wip.git] / asn1 / x509sat / Makefile.nmake
index 8b6b884f5f82150311fd46dc69a321176d9859df..8d8432f0cada8d3b63237a1310fcfa70ea145e37 100644 (file)
@@ -16,13 +16,14 @@ generate_dissector: $(DISSECTOR_FILES)
 $(DISSECTOR_FILES): ../../tools/asn2eth.py SelectedAttributeTypes.asn packet-x509sat-template.c packet-x509sat-template.h x509sat.cnf ../x509if/x509if-exp.cnf
 !IFDEF PYTHON
        $(PYTHON) ../../tools/asn2eth.py -X -b -e -p $(PROTOCOL_NAME) -c x509sat.cnf -s packet-x509sat-template SelectedAttributeTypes.asn
+       sed -e "s/\([\"\.]\)Syntax/\1/g" -i.orig packet-x509sat.c
 !ELSE
        @echo Error: You need Python to use asn2eth.py
        @exit 1
 !ENDIF
 
 clean:
-       rm -f parsetab.py $(DISSECTOR_FILES)
+       rm -f parsetab.py parsetab.pyc $(DISSECTOR_FILES)
 
 # Fix EOL in generated dissectors. Cygwin's python generates files with 
 # mixed EOL styles, which can't be commited to the SVN repository.
@@ -37,6 +38,6 @@ fix_eol: generate_dissector
        del /f packet-$(PROTOCOL_NAME).c.tmp packet-$(PROTOCOL_NAME).h.tmp
 
 copy_files: generate_dissector fix_eol
-       xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d
-       xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d
+       xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d /y
+       xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d /y