Skip to content

Commit

Permalink
include/openflow: Simplify structure checking for OpenFlow headers.
Browse files Browse the repository at this point in the history
This means that anyone who adds another openflow include file automatically
gets it checked.  It does mean that changing any of the OpenFlow headers
causes all of them to be checked, but that doesn't seem like a big deal
(it's quick).

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Thomas Graf <[email protected]>
  • Loading branch information
blp committed Mar 17, 2015
1 parent 0792d09 commit 71d6ab4
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions include/openflow/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,10 @@ SUFFIXES += .h .hstamp
$(AM_V_GEN)$(run_python) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< && \
touch $@

HSTAMP_FILES = \
include/openflow/nicira-ext.hstamp \
include/openflow/openflow-1.0.hstamp \
include/openflow/openflow-1.1.hstamp \
include/openflow/openflow-1.2.hstamp \
include/openflow/openflow-1.3.hstamp \
include/openflow/openflow-1.4.hstamp \
include/openflow/openflow-1.5.hstamp \
include/openflow/openflow-common.hstamp \
include/openflow/openflow.hstamp
HSTAMP_FILES = $(openflowinclude_HEADERS:.h=.hstamp)
CLEANFILES += $(HSTAMP_FILES)
ALL_LOCAL += $(HSTAMP_FILES)
$(HSTAMP_FILES): build-aux/check-structs

include/openflow/openflow-1.0.hstamp: \
include/openflow/openflow-common.h
include/openflow/openflow-1.1.hstamp: \
include/openflow/openflow-common.h
include/openflow/openflow-1.2.hstamp: \
include/openflow/openflow-common.h \
include/openflow/openflow-1.1.h
include/openflow/openflow-1.3.hstamp: \
include/openflow/openflow-common.h \
include/openflow/openflow-1.1.h \
include/openflow/openflow-1.2.h
include/openflow/openflow-1.4.hstamp: \
include/openflow/openflow-1.4.h
include/openflow/openflow-1.5.hstamp: \
include/openflow/openflow-1.5.h
include/openflow/nicira-ext.hstamp: \
include/openflow/openflow.h \
include/openflow/openflow-common.h \
include/openflow/openflow-1.0.h \
include/openflow/openflow-1.1.h \
include/openflow/openflow-1.2.h \
include/openflow/openflow-1.3.h
$(HSTAMP_FILES): build-aux/check-structs $(openflowinclude_HEADERS)
endif

EXTRA_DIST += build-aux/check-structs
Expand Down

0 comments on commit 71d6ab4

Please sign in to comment.