Make the Makefile look like the h235 Makefiles, with the new rules.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2005 10:19:21 +0000 (10:19 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2005 10:19:21 +0000 (10:19 +0000)
Get rid of their "executable" property, and set svn:keywords to Id and
svn:eol-style to native if they're not already set.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13071 f5534014-38df-0310-8fa8-9805f1628bb7

23 files changed:
asn1/MAP_Dialogue/Makefile [changed mode: 0755->0644]
asn1/cmip/Makefile [changed mode: 0755->0644]
asn1/cms/Makefile [changed mode: 0755->0644]
asn1/ess/Makefile [changed mode: 0755->0644]
asn1/gsmmap/Makefile [changed mode: 0755->0644]
asn1/h225/Makefile [changed mode: 0755->0644]
asn1/h248/Makefile [changed mode: 0755->0644]
asn1/logotype-cert-extn/Makefile [changed mode: 0755->0644]
asn1/ocsp/Makefile [changed mode: 0755->0644]
asn1/pkcs1/Makefile [changed mode: 0755->0644]
asn1/pkinit/Makefile [changed mode: 0755->0644]
asn1/pkix1explicit/Makefile [changed mode: 0755->0644]
asn1/pkix1implicit/Makefile [changed mode: 0755->0644]
asn1/pkixcmp/Makefile [changed mode: 0755->0644]
asn1/pkixcrmf/Makefile [changed mode: 0755->0644]
asn1/pkixproxy/Makefile [changed mode: 0755->0644]
asn1/pkixqualified/Makefile [changed mode: 0755->0644]
asn1/pkixtsp/Makefile [changed mode: 0755->0644]
asn1/smrse/Makefile [changed mode: 0755->0644]
asn1/x509af/Makefile [changed mode: 0755->0644]
asn1/x509ce/Makefile [changed mode: 0755->0644]
asn1/x509if/Makefile [changed mode: 0755->0644]
asn1/x509sat/Makefile [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6c41270..157d52c
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-MAP_DialoguePDU.c : ../../tools/asn2eth.py MAP_DialoguePDU.asn packet-MAP-DialoguePDU-template.c packet-MAP-DialoguePDU-template.h MAP_DialoguePDU.cnf
+DISSECTOR_FILES=packet-MAP_DialoguePDU.c packet-MAP_DialoguePDU.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py MAP_DialoguePDU.asn packet-MAP-DialoguePDU-template.c packet-MAP-DialoguePDU-template.h MAP_DialoguePDU.cnf
        python ../../tools/asn2eth.py -X -b -e -p MAP_DialoguePDU -c MAP_DialoguePDU.cnf -s packet-MAP-DialoguePDU-template MAP_DialoguePDU.asn
-       cp packet-MAP_DialoguePDU.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index b1cc61c..5c6d0f1
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-cmip.c : ../../tools/asn2eth.py CMIP.asn packet-cmip-template.c packet-cmip-template.h cmip.cnf 
+DISSECTOR_FILES=packet-cmip.c packet-cmip.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py CMIP.asn packet-cmip-template.c packet-cmip-template.h cmip.cnf 
        python ../../tools/asn2eth.py -X -b -e -p cmip -c cmip.cnf -s packet-cmip-template CMIP.asn
-       cp packet-cmip.* ../../epan/dissectors
 
+clean:
+       rm -f cmip-exp.cnf parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 9fba674..34b63ea
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-cms.c : ../../tools/asn2eth.py CryptographicMessageSyntax.asn packet-cms-template.c packet-cms-template.h cms.cnf
+DISSECTOR_FILES=packet-cms.c packet-cms.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py CryptographicMessageSyntax.asn packet-cms-template.c packet-cms-template.h cms.cnf
        python ../../tools/asn2eth.py -X -b -e -p cms -c cms.cnf -s packet-cms-template CryptographicMessageSyntax.asn
-       cp packet-cms.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 8c5fdcb..dc0106a
@@ -1,5 +1,22 @@
+# $Id$
 
-../../epan/dissectors/packet-ess.c : ../../tools/asn2eth.py ExtendedSecurityServices.asn packet-ess-template.c packet-ess-template.h ess.cnf
+DISSECTOR_FILES=packet-ess.c packet-ess.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py ExtendedSecurityServices.asn packet-ess-template.c packet-ess-template.h ess.cnf
        python ../../tools/asn2eth.py -X -b -k -e -p ess -c ess.cnf -s packet-ess-template ExtendedSecurityServices.asn
-       cp packet-ess.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)    \
+               packet-ess-ettarr.c     \
+               packet-ess-hfarr.c      \
+               packet-ess-dis-tab.c    \
+               packet-ess-fn.c         \
+               packet-ess-ett.c        \
+               packet-ess-hf.c
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 7c03804..a325132
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-gsm_map.c : ../../tools/asn2eth.py GSMMAP.asn packet-gsm_map-template.c packet-gsm_map-template.h gsmmap.cnf 
+DISSECTOR_FILES=packet-gsm_map.c packet-gsm_map.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py GSMMAP.asn packet-gsm_map-template.c packet-gsm_map-template.h gsmmap.cnf 
        python ../../tools/asn2eth.py -X -b -e -p gsm_map -c gsmmap.cnf -s packet-gsm_map-template GSMMAP.asn
-       cp packet-gsm_map.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 01229a7..be6787c
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-h248.c : ../../tools/asn2eth.py MEGACO.asn packet-h248-template.c packet-h248-template.h h248.cnf 
+DISSECTOR_FILES=packet-h248.c packet-h248.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py MEGACO.asn packet-h248-template.c packet-h248-template.h h248.cnf 
        python ../../tools/asn2eth.py -X -b -e -p h248 -c h248.cnf -s packet-h248-template MEGACO.asn
-       cp packet-h248.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 67b6a12..8299658
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-logotypecertextn.c : ../../tools/asn2eth.py LogotypeCertExtn.asn packet-logotype-cert-extn-template.c packet-logotype-cert-extn-template.h logotype-cert-extn.cnf
+DISSECTOR_FILES=packet-logotypecertextn.c packet-logotypecertextn.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py LogotypeCertExtn.asn packet-logotype-cert-extn-template.c packet-logotype-cert-extn-template.h logotype-cert-extn.cnf
        python ../../tools/asn2eth.py -X -b -e -p logotypecertextn -c logotype-cert-extn.cnf -s packet-logotype-cert-extn-template LogotypeCertExtn.asn
-       cp packet-logotypecertextn.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 5bebacf..f21952c
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-ocsp.c : ../../tools/asn2eth.py OCSP.asn packet-ocsp-template.c packet-ocsp-template.h ocsp.cnf
+DISSECTOR_FILES=packet-ocsp.c packet-ocsp.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py OCSP.asn packet-ocsp-template.c packet-ocsp-template.h ocsp.cnf
        python ../../tools/asn2eth.py -X -b -e -p ocsp -c ocsp.cnf -s packet-ocsp-template OCSP.asn
-       cp packet-ocsp.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 17a493c..fb90672
@@ -1,4 +1,16 @@
-../../epan/dissectors/packet-pkcs1.c : ../../tools/asn2eth.py PKCS1.asn packet-pkcs1-template.c packet-pkcs1-template.h pkcs1.cnf
+# $Id$
+
+DISSECTOR_FILES=packet-pkcs1.c packet-pkcs1.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKCS1.asn packet-pkcs1-template.c packet-pkcs1-template.h pkcs1.cnf
        python ../../tools/asn2eth.py -X -b -p pkcs1 -c pkcs1.cnf -s packet-pkcs1-template PKCS1.asn
-       cp packet-pkcs1.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 50c54b2..d185d1f
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkinit.c : ../../tools/asn2eth.py PKINIT.asn packet-pkinit-template.c packet-pkinit-template.h pkinit.cnf
+DISSECTOR_FILES=packet-pkinit.c packet-pkinit.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKINIT.asn packet-pkinit-template.c packet-pkinit-template.h pkinit.cnf
        python ../../tools/asn2eth.py -e -X -b -p pkinit -c pkinit.cnf -s packet-pkinit-template PKINIT.asn
-       cp packet-pkinit.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 670de30..726d107
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkix1explicit.c : ../../tools/asn2eth.py PKIX1EXPLICIT93.asn packet-pkix1explicit-template.c packet-pkix1explicit-template.h pkix1explicit.cnf
+DISSECTOR_FILES=packet-pkix1explicit.c packet-pkix1explicit.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKIX1EXPLICIT93.asn packet-pkix1explicit-template.c packet-pkix1explicit-template.h pkix1explicit.cnf
        python ../../tools/asn2eth.py -e -X -b -p pkix1explicit -c pkix1explicit.cnf -s packet-pkix1explicit-template PKIX1EXPLICIT93.asn 
-       cp packet-pkix1explicit.* ../../epan/dissectors
 
+clean:
+       rm -f pkix1explicit-exp.cnf parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index e830685..d1c1251
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkix1implicit.c : ../../tools/asn2eth.py PKIX1IMPLICIT93.asn packet-pkix1implicit-template.c packet-pkix1implicit-template.h pkix1implicit.cnf
+DISSECTOR_FILES=packet-pkix1implicit.c packet-pkix1implicit.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKIX1IMPLICIT93.asn packet-pkix1implicit-template.c packet-pkix1implicit-template.h pkix1implicit.cnf
        python ../../tools/asn2eth.py -e -X -b -p pkix1implicit -c pkix1implicit.cnf -s packet-pkix1implicit-template PKIX1IMPLICIT93.asn 
-       cp packet-pkix1implicit.* ../../epan/dissectors
 
+clean:
+       rm -f pkix1implicit-exp.cnf parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 52b197e..d0e33fe
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-cmp.c : ../../tools/asn2eth.py CMP.asn packet-cmp-template.c packet-cmp-template.h cmp.cnf 
+DISSECTOR_FILES=packet-cmp.c packet-cmp.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py CMP.asn packet-cmp-template.c packet-cmp-template.h cmp.cnf 
        python ../../tools/asn2eth.py -X -b -e -p cmp -c cmp.cnf -s packet-cmp-template CMP.asn
-       cp packet-cmp.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index cf74753..bc2ab03
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-crmf.c : ../../tools/asn2eth.py CRMF.asn packet-crmf-template.c packet-crmf-template.h crmf.cnf 
+DISSECTOR_FILES=packet-crmf.c packet-crmf.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py CRMF.asn packet-crmf-template.c packet-crmf-template.h crmf.cnf 
        python ../../tools/asn2eth.py -X -b -e -p crmf -c crmf.cnf -s packet-crmf-template CRMF.asn
-       cp packet-crmf.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index db33a69..e361eb9
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkixproxy.c : ../../tools/asn2eth.py PKIXProxy.asn packet-pkixproxy-template.c packet-pkixproxy-template.h pkixproxy.cnf
+DISSECTOR_FILES=packet-pkixproxy.c packet-pkixproxy.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKIXProxy.asn packet-pkixproxy-template.c packet-pkixproxy-template.h pkixproxy.cnf
        python ../../tools/asn2eth.py -X -b -e -p pkixproxy -c pkixproxy.cnf -s packet-pkixproxy-template PKIXProxy.asn
-       cp packet-pkixproxy.* ../../epan/dissectors
 
+clean:
+       rm -f pkix1explicit-exp.cnf parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index ed81400..aad84b6
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkixqualified.c : ../../tools/asn2eth.py PKIXqualified.asn packet-pkixqualified-template.c packet-pkixqualified-template.h pkixqualified.cnf
+DISSECTOR_FILES=packet-pkixqualified.c packet-pkixqualified.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKIXqualified.asn packet-pkixqualified-template.c packet-pkixqualified-template.h pkixqualified.cnf
        python ../../tools/asn2eth.py -X -b -e -p pkixqualified -c pkixqualified.cnf -s packet-pkixqualified-template PKIXqualified.asn
-       cp packet-pkixqualified.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index e033cda..3b1fbea
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-pkixtsp.c : ../../tools/asn2eth.py PKIXTSP.asn packet-pkixtsp-template.c packet-pkixtsp-template.h pkixtsp.cnf
+DISSECTOR_FILES=packet-pkixtsp.c packet-pkixtsp.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py PKIXTSP.asn packet-pkixtsp-template.c packet-pkixtsp-template.h pkixtsp.cnf
        python ../../tools/asn2eth.py -X -b -e -p pkixtsp -c pkixtsp.cnf -s packet-pkixtsp-template PKIXTSP.asn
-       cp packet-pkixtsp.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 769adad..301a983
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-smrse.c : ../../tools/asn2eth.py SMRSE.asn packet-smrse-template.c packet-smrse-template.h smrse.cnf 
+DISSECTOR_FILES=packet-smrse.c packet-smrse.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py SMRSE.asn packet-smrse-template.c packet-smrse-template.h smrse.cnf 
        python ../../tools/asn2eth.py -X -b -e -p smrse -c smrse.cnf -s packet-smrse-template SMRSE.asn
-       cp packet-smrse.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 5bf2d2e..bf31cb1
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-x509af.c : ../../tools/asn2eth.py AuthenticationFramework.asn packet-x509af-template.c packet-x509af-template.h x509af.cnf ../x509if/x509if-exp.cnf ../x509sat/x509sat-exp.cnf ../x509ce/x509ce-exp.cnf
+DISSECTOR_FILES=packet-x509af.c packet-x509af.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py AuthenticationFramework.asn packet-x509af-template.c packet-x509af-template.h x509af.cnf ../x509if/x509if-exp.cnf ../x509sat/x509sat-exp.cnf ../x509ce/x509ce-exp.cnf
        python ../../tools/asn2eth.py -X -b -e -p x509af -c x509af.cnf -s packet-x509af-template AuthenticationFramework.asn
-       cp packet-x509af.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 244d284..b7fa433
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-x509ce.c : ../../tools/asn2eth.py CertificateExtensions.asn packet-x509ce-template.c packet-x509ce-template.h x509ce.cnf ../x509if/x509if-exp.cnf ../x509sat/x509sat-exp.cnf ../x509af/x509af-exp.cnf
+DISSECTOR_FILES=packet-x509ce.c packet-x509ce.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py CertificateExtensions.asn packet-x509ce-template.c packet-x509ce-template.h x509ce.cnf ../x509if/x509if-exp.cnf ../x509sat/x509sat-exp.cnf ../x509af/x509af-exp.cnf
        python ../../tools/asn2eth.py -X -b -e -p x509ce -c x509ce.cnf -s packet-x509ce-template CertificateExtensions.asn
-       cp packet-x509ce.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 2d354e3..e8d3d34
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-x509if.c : ../../tools/asn2eth.py InformationFramework.asn packet-x509if-template.c packet-x509if-template.h x509if.cnf ../x509sat/x509sat-exp.cnf
+DISSECTOR_FILES=packet-x509if.c packet-x509if.h
+
+all: generate_dissector
+
+generate_dissector: $(DISSECTOR_FILES)
+
+$(DISSECTOR_FILES): ../../tools/asn2eth.py InformationFramework.asn packet-x509if-template.c packet-x509if-template.h x509if.cnf ../x509sat/x509sat-exp.cnf
        python ../../tools/asn2eth.py -X -b -e -p x509if -c x509if.cnf -s packet-x509if-template InformationFramework.asn
-       cp packet-x509if.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors
old mode 100755 (executable)
new mode 100644 (file)
index 805e153..7d18fcc
@@ -1,5 +1,16 @@
+# $Id$
 
-../../epan/dissectors/packet-x509sat.c : ../../tools/asn2eth.py SelectedAttributeTypes.asn packet-x509sat-template.c packet-x509sat-template.h x509sat.cnf ../x509if/x509if-exp.cnf
+DISSECTOR_FILES=packet-x509sat.c packet-x509sat.h
+
+all: generate_dissector
+
+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
        python ../../tools/asn2eth.py -X -b -e -p x509sat -c x509sat.cnf -s packet-x509sat-template SelectedAttributeTypes.asn
-       cp packet-x509sat.* ../../epan/dissectors
 
+clean:
+       rm -f parsetab.py $(DISSECTOR_FILES)
+
+copy_files: generate_dissector
+       cp $(DISSECTOR_FILES) ../../epan/dissectors