X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fautomake.mk;h=4b370d4f3faa5e906fb779e4b6be7818d63f8793;hb=55eccb868b8f1da858a9f724335b5bb059276497;hp=d4731550a3100dc2b58b030bf4e1422f2878327d;hpb=064af42167bf4fc9aaea2702d80ce08074b889c0;p=openvswitch diff --git a/include/openflow/automake.mk b/include/openflow/automake.mk index d4731550..4b370d4f 100644 --- a/include/openflow/automake.mk +++ b/include/openflow/automake.mk @@ -1,4 +1,21 @@ noinst_HEADERS += \ - include/openflow/openflow-mgmt.h \ include/openflow/nicira-ext.h \ include/openflow/openflow.h + +if HAVE_PYTHON +ALL_LOCAL += include/openflow/openflow.h.stamp +include/openflow/openflow.h.stamp: \ + include/openflow/openflow.h build-aux/check-structs + $(PYTHON) $(srcdir)/build-aux/check-structs $(srcdir)/include/openflow/openflow.h + touch $@ +DISTCLEANFILES += include/openflow/openflow.h.stamp + +ALL_LOCAL += include/openflow/nicira-ext.h.stamp +include/openflow/nicira-ext.h.stamp: include/openflow/openflow.h include/openflow/nicira-ext.h build-aux/check-structs + $(PYTHON) $(srcdir)/build-aux/check-structs $(srcdir)/include/openflow/openflow.h $(srcdir)/include/openflow/nicira-ext.h + touch $@ +DISTCLEANFILES += include/openflow/nicira-ext.h.stamp +endif + +EXTRA_DIST += build-aux/check-structs +