Make the rules match those of Makefile.nmake - make "all" and

"generate_dissector" generate the dissector files but not copy them to
epan/dissectors, add a "copy_files" rule to copy them, and add a "clean"
rule to clean up.

svn path=/trunk/; revision=13068
This commit is contained in:
Guy Harris 2005-01-16 09:16:36 +00:00
parent 840b84c12f
commit 21667c248a
1 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,16 @@
# $Id$
../../epan/dissectors/packet-h225.c : ../../tools/asn2eth.py h225.asn packet-h225-template.c packet-h225-template.h h225.cnf
python ../../tools/asn2eth.py -X -e -p h225 -c h225.cnf -s packet-h225-template h225.asn
cp packet-h225.* ../../epan/dissectors
DISSECTOR_FILES=packet-h225.c packet-h225.h
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
$(DISSECTOR_FILES): ../../tools/asn2eth.py h225.asn packet-h225-template.c packet-h225-template.h h225.cnf
python ../../tools/asn2eth.py -X -e -p h225 -c h225.cnf -s packet-h225-template h225.asn
clean:
rm -f parsetab.py $(DISSECTOR_FILES)
copy_files: generate_dissector
cp $(DISSECTOR_FILES) ../../epan/dissectors