small improvements
[sliver-openvswitch.git] / include / openflow / automake.mk
1 noinst_HEADERS += \
2         include/openflow/nicira-ext.h \
3         include/openflow/openflow-1.0.h \
4         include/openflow/openflow-1.1.h \
5         include/openflow/openflow-1.2.h \
6         include/openflow/openflow-common.h \
7         include/openflow/openflow.h
8
9 if HAVE_PYTHON
10 SUFFIXES += .h .hstamp
11
12 .h.hstamp:
13         $(PYTHON) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $<
14         touch $@
15
16 HSTAMP_FILES = \
17         include/openflow/nicira.hstamp \
18         include/openflow/openflow-1.0.hstamp \
19         include/openflow/openflow-1.1.hstamp \
20         include/openflow/openflow-1.2.hstamp \
21         include/openflow/openflow.hstamp
22 CLEANFILES += $(HSTAMP_FILES)
23 ALL_LOCAL += $(HSTAMP_FILES)
24 $(HSTAMP_FILES): build-aux/check-structs
25
26 include/openflow/openflow-1.0.hstamp: include/openflow/openflow-common.h
27 include/openflow/openflow-1.1.hstamp: include/openflow/openflow-common.h
28 include/openflow/nicira-ext.hstamp: \
29         include/openflow/openflow-1.0.h \
30         include/openflow/openflow-1.1.h \
31         include/openflow/openflow-1.2.h \
32         include/openflow/openflow-common.h \
33         include/openflow/openflow.h
34 endif
35
36 EXTRA_DIST += build-aux/check-structs
37