X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenflow%2Fautomake.mk;h=38e8eefd16613ca769d642b9ccbb6197dcbdfb30;hb=626186c3bea6b07442632684eacf4d02545fa05f;hp=4b370d4f3faa5e906fb779e4b6be7818d63f8793;hpb=22c79496a9a6d56ce82c73ce2719fecbf028f133;p=openvswitch diff --git a/include/openflow/automake.mk b/include/openflow/automake.mk index 4b370d4f..38e8eefd 100644 --- a/include/openflow/automake.mk +++ b/include/openflow/automake.mk @@ -1,20 +1,36 @@ noinst_HEADERS += \ include/openflow/nicira-ext.h \ + include/openflow/openflow-1.0.h \ + include/openflow/openflow-1.1.h \ + include/openflow/openflow-1.2.h \ + include/openflow/openflow-common.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 +SUFFIXES += .h .hstamp -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 +.h.hstamp: + $(run_python) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< touch $@ -DISTCLEANFILES += include/openflow/nicira-ext.h.stamp + +HSTAMP_FILES = \ + include/openflow/nicira.hstamp \ + include/openflow/openflow-1.0.hstamp \ + include/openflow/openflow-1.1.hstamp \ + include/openflow/openflow-1.2.hstamp \ + include/openflow/openflow.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/nicira-ext.hstamp: \ + include/openflow/openflow-1.0.h \ + include/openflow/openflow-1.1.h \ + include/openflow/openflow-1.2.h \ + include/openflow/openflow-common.h \ + include/openflow/openflow.h endif EXTRA_DIST += build-aux/check-structs