summaryrefslogtreecommitdiff
path: root/lib/automake.mk
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-12 13:42:50 -0800
committerBen Pfaff <blp@nicira.com>2011-01-12 13:51:43 -0800
commitdc4762edd02693770d392b8f6495deb7e52635bf (patch)
tree92ed4ec143b5d99170a479ab4d95f9cb627eb389 /lib/automake.mk
parenta44d74d75294e358e501cc83fd35e6a5e50ebf0b (diff)
downloadopenvswitch-dc4762edd02693770d392b8f6495deb7e52635bf.tar.gz
Automatically extract error types and codes for formatting.
Diffstat (limited to 'lib/automake.mk')
-rw-r--r--lib/automake.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/automake.mk b/lib/automake.mk
index f5d23a23b..269ab897f 100644
--- a/lib/automake.mk
+++ b/lib/automake.mk
@@ -81,6 +81,8 @@ lib_libopenvswitch_a_SOURCES = \
lib/nx-match.h \
lib/odp-util.c \
lib/odp-util.h \
+ lib/ofp-errors.c \
+ lib/ofp-errors.h \
lib/ofp-parse.c \
lib/ofp-parse.h \
lib/ofp-print.c \
@@ -245,6 +247,14 @@ lib/dirs.c: lib/dirs.c.in Makefile
> lib/dirs.c.tmp
mv lib/dirs.c.tmp lib/dirs.c
+$(srcdir)/lib/ofp-errors.c: \
+ include/openflow/openflow.h include/openflow/nicira-ext.h \
+ build-aux/extract-ofp-errors
+ cd $(srcdir)/include && \
+ $(PYTHON) ../build-aux/extract-ofp-errors \
+ openflow/openflow.h openflow/nicira-ext.h > ../lib/ofp-errors.c
+EXTRA_DIST += build-aux/extract-ofp-errors
+
install-data-local: lib-install-data-local
lib-install-data-local:
$(MKDIR_P) $(DESTDIR)$(RUNDIR)