aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'asn1')
-rw-r--r--[-rwxr-xr-x]asn1/MAP_Dialogue/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/cmip/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/cms/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/ess/Makefile21
-rw-r--r--[-rwxr-xr-x]asn1/gsmmap/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/h225/Makefile0
-rw-r--r--[-rwxr-xr-x]asn1/h248/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/logotype-cert-extn/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/ocsp/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkcs1/Makefile16
-rw-r--r--[-rwxr-xr-x]asn1/pkinit/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkix1explicit/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkix1implicit/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkixcmp/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkixcrmf/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkixproxy/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkixqualified/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/pkixtsp/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/smrse/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/x509af/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/x509ce/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/x509if/Makefile15
-rw-r--r--[-rwxr-xr-x]asn1/x509sat/Makefile15
23 files changed, 293 insertions, 44 deletions
diff --git a/asn1/MAP_Dialogue/Makefile b/asn1/MAP_Dialogue/Makefile
index 6c4127089f..157d52c54a 100755..100644
--- a/asn1/MAP_Dialogue/Makefile
+++ b/asn1/MAP_Dialogue/Makefile
@@ -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
diff --git a/asn1/cmip/Makefile b/asn1/cmip/Makefile
index b1cc61cf13..5c6d0f17cf 100755..100644
--- a/asn1/cmip/Makefile
+++ b/asn1/cmip/Makefile
@@ -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
diff --git a/asn1/cms/Makefile b/asn1/cms/Makefile
index 9fba674d4d..34b63ea496 100755..100644
--- a/asn1/cms/Makefile
+++ b/asn1/cms/Makefile
@@ -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
diff --git a/asn1/ess/Makefile b/asn1/ess/Makefile
index 8c5fdcb141..dc0106a462 100755..100644
--- a/asn1/ess/Makefile
+++ b/asn1/ess/Makefile
@@ -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
diff --git a/asn1/gsmmap/Makefile b/asn1/gsmmap/Makefile
index 7c03804228..a325132824 100755..100644
--- a/asn1/gsmmap/Makefile
+++ b/asn1/gsmmap/Makefile
@@ -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
diff --git a/asn1/h225/Makefile b/asn1/h225/Makefile
index 5f580777b5..5f580777b5 100755..100644
--- a/asn1/h225/Makefile
+++ b/asn1/h225/Makefile
diff --git a/asn1/h248/Makefile b/asn1/h248/Makefile
index 01229a7d70..be6787c09e 100755..100644
--- a/asn1/h248/Makefile
+++ b/asn1/h248/Makefile
@@ -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
diff --git a/asn1/logotype-cert-extn/Makefile b/asn1/logotype-cert-extn/Makefile
index 67b6a1281d..82996583fb 100755..100644
--- a/asn1/logotype-cert-extn/Makefile
+++ b/asn1/logotype-cert-extn/Makefile
@@ -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
diff --git a/asn1/ocsp/Makefile b/asn1/ocsp/Makefile
index 5bebacf7b0..f21952c52f 100755..100644
--- a/asn1/ocsp/Makefile
+++ b/asn1/ocsp/Makefile
@@ -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
diff --git a/asn1/pkcs1/Makefile b/asn1/pkcs1/Makefile
index 17a493cf52..fb90672ebd 100755..100644
--- a/asn1/pkcs1/Makefile
+++ b/asn1/pkcs1/Makefile
@@ -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
diff --git a/asn1/pkinit/Makefile b/asn1/pkinit/Makefile
index 50c54b2ac5..d185d1f0a2 100755..100644
--- a/asn1/pkinit/Makefile
+++ b/asn1/pkinit/Makefile
@@ -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
diff --git a/asn1/pkix1explicit/Makefile b/asn1/pkix1explicit/Makefile
index 670de30c90..726d107927 100755..100644
--- a/asn1/pkix1explicit/Makefile
+++ b/asn1/pkix1explicit/Makefile
@@ -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
diff --git a/asn1/pkix1implicit/Makefile b/asn1/pkix1implicit/Makefile
index e830685e0b..d1c125138e 100755..100644
--- a/asn1/pkix1implicit/Makefile
+++ b/asn1/pkix1implicit/Makefile
@@ -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
diff --git a/asn1/pkixcmp/Makefile b/asn1/pkixcmp/Makefile
index 52b197e94f..d0e33fec43 100755..100644
--- a/asn1/pkixcmp/Makefile
+++ b/asn1/pkixcmp/Makefile
@@ -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
diff --git a/asn1/pkixcrmf/Makefile b/asn1/pkixcrmf/Makefile
index cf74753397..bc2ab03f17 100755..100644
--- a/asn1/pkixcrmf/Makefile
+++ b/asn1/pkixcrmf/Makefile
@@ -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
diff --git a/asn1/pkixproxy/Makefile b/asn1/pkixproxy/Makefile
index db33a69ba8..e361eb91b7 100755..100644
--- a/asn1/pkixproxy/Makefile
+++ b/asn1/pkixproxy/Makefile
@@ -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
diff --git a/asn1/pkixqualified/Makefile b/asn1/pkixqualified/Makefile
index ed814004cd..aad84b69f1 100755..100644
--- a/asn1/pkixqualified/Makefile
+++ b/asn1/pkixqualified/Makefile
@@ -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
diff --git a/asn1/pkixtsp/Makefile b/asn1/pkixtsp/Makefile
index e033cdaca6..3b1fbea153 100755..100644
--- a/asn1/pkixtsp/Makefile
+++ b/asn1/pkixtsp/Makefile
@@ -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
diff --git a/asn1/smrse/Makefile b/asn1/smrse/Makefile
index 769adad0bf..301a98380a 100755..100644
--- a/asn1/smrse/Makefile
+++ b/asn1/smrse/Makefile
@@ -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
diff --git a/asn1/x509af/Makefile b/asn1/x509af/Makefile
index 5bf2d2e2f2..bf31cb117e 100755..100644
--- a/asn1/x509af/Makefile
+++ b/asn1/x509af/Makefile
@@ -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
diff --git a/asn1/x509ce/Makefile b/asn1/x509ce/Makefile
index 244d28416b..b7fa433dba 100755..100644
--- a/asn1/x509ce/Makefile
+++ b/asn1/x509ce/Makefile
@@ -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
diff --git a/asn1/x509if/Makefile b/asn1/x509if/Makefile
index 2d354e3586..e8d3d3401b 100755..100644
--- a/asn1/x509if/Makefile
+++ b/asn1/x509if/Makefile
@@ -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
diff --git a/asn1/x509sat/Makefile b/asn1/x509sat/Makefile
index 805e1535c7..7d18fcc873 100755..100644
--- a/asn1/x509sat/Makefile
+++ b/asn1/x509sat/Makefile
@@ -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