openflow: Properly clean out stamp files on "make clean".
[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-common.h \
6         include/openflow/openflow.h
7
8 if HAVE_PYTHON
9 SUFFIXES += .h .hstamp
10
11 .h.hstamp:
12         $(PYTHON) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $<
13         touch $@
14
15 HSTAMP_FILES = \
16         include/openflow/nicira.hstamp \
17         include/openflow/openflow-1.0.hstamp \
18         include/openflow/openflow-1.1.hstamp \
19         include/openflow/openflow.hstamp
20 CLEANFILES += $(HSTAMP_FILES)
21 ALL_LOCAL += $(HSTAMP_FILES)
22 $(HSTAMP_FILES): build-aux/check-structs
23
24 include/openflow/openflow-1.0.hstamp: include/openflow/openflow-common.h
25 include/openflow/openflow-1.1.hstamp: include/openflow/openflow-common.h
26 include/openflow/nicira-ext.hstamp: \
27         include/openflow/openflow-1.0.h \
28         include/openflow/openflow-1.1.h \
29         include/openflow/openflow-common.h \
30         include/openflow/openflow.h
31 endif
32
33 EXTRA_DIST += build-aux/check-structs
34