include/openflow: Simplify structure checking for OpenFlow headers.
[cascardo/ovs.git] / include / openflow / automake.mk
1 openflowincludedir = $(includedir)/openflow
2 openflowinclude_HEADERS = \
3         include/openflow/nicira-ext.h \
4         include/openflow/openflow-1.0.h \
5         include/openflow/openflow-1.1.h \
6         include/openflow/openflow-1.2.h \
7         include/openflow/openflow-1.3.h \
8         include/openflow/openflow-1.4.h \
9         include/openflow/openflow-1.5.h \
10         include/openflow/openflow-common.h \
11         include/openflow/openflow.h
12
13 if HAVE_PYTHON
14 SUFFIXES += .h .hstamp
15
16 .h.hstamp:
17         $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< && \
18         touch $@
19
20 HSTAMP_FILES = $(openflowinclude_HEADERS:.h=.hstamp)
21 CLEANFILES += $(HSTAMP_FILES)
22 ALL_LOCAL += $(HSTAMP_FILES)
23 $(HSTAMP_FILES): build-aux/check-structs $(openflowinclude_HEADERS)
24 endif
25
26 EXTRA_DIST += build-aux/check-structs
27