]>
Commit | Line | Data |
---|---|---|
939f4522 | 1 | # Copyright (C) 2007-2017 Nicira, Inc. |
a14bc59f BP |
2 | # |
3 | # Copying and distribution of this file, with or without modification, | |
4 | # are permitted in any medium without royalty provided the copyright | |
5 | # notice and this notice are preserved. This file is offered as-is, | |
6 | # without warranty of any kind. | |
7 | ||
064af421 BP |
8 | AUTOMAKE_OPTIONS = foreign subdir-objects |
9 | ACLOCAL_AMFLAGS = -I m4 | |
10 | SUBDIRS = datapath | |
11 | ||
064af421 | 12 | AM_CPPFLAGS = $(SSL_CFLAGS) |
cf06c2e9 | 13 | AM_LDFLAGS = $(SSL_LDFLAGS) |
95626395 | 14 | AM_LDFLAGS += $(OVS_LDFLAGS) |
e42dfc72 AS |
15 | |
16 | if WIN32 | |
17 | AM_CPPFLAGS += -I $(top_srcdir)/include/windows | |
c803536e | 18 | AM_CPPFLAGS += -I $(top_srcdir)/datapath-windows/include |
94887cf4 | 19 | AM_CPPFLAGS += $(PTHREAD_INCLUDES) |
b0e1bce5 | 20 | AM_CPPFLAGS += $(MSVC_CFLAGS) |
94887cf4 | 21 | AM_LDFLAGS += $(PTHREAD_LDFLAGS) |
1cb3649c | 22 | AM_LDFLAGS += $(MSVC64_LDFLAGS) |
e42dfc72 AS |
23 | endif |
24 | ||
064af421 | 25 | AM_CPPFLAGS += -I $(top_srcdir)/include |
837eefc7 | 26 | AM_CPPFLAGS += -I $(top_builddir)/include |
064af421 | 27 | AM_CPPFLAGS += -I $(top_srcdir)/lib |
611d30ce | 28 | AM_CPPFLAGS += -I $(top_builddir)/lib |
064af421 | 29 | |
8605a29b PK |
30 | AM_CPPFLAGS += $(SSL_INCLUDES) |
31 | ||
064af421 | 32 | AM_CFLAGS = -Wstrict-prototypes |
d161c099 | 33 | AM_CFLAGS += $(WARNING_FLAGS) |
95626395 | 34 | AM_CFLAGS += $(OVS_CFLAGS) |
064af421 | 35 | |
58397e6c KT |
36 | if DPDK_NETDEV |
37 | AM_CFLAGS += -D_FILE_OFFSET_BITS=64 | |
38 | endif | |
39 | ||
064af421 BP |
40 | if NDEBUG |
41 | AM_CPPFLAGS += -DNDEBUG | |
42 | AM_CFLAGS += -fomit-frame-pointer | |
064af421 BP |
43 | endif |
44 | ||
0eaaacac FL |
45 | AM_CTAGSFLAGS = $(OVS_CTAGS_IDENTIFIERS_LIST) |
46 | ||
b02e1154 GS |
47 | if WIN32 |
48 | psep=";" | |
49 | else | |
50 | psep=":" | |
51 | endif | |
853d1083 BP |
52 | # PYTHONDONTWRITEBYTECODE=yes keeps Python from creating .pyc and .pyo |
53 | # files. Creating .py[co] works OK for any given version of Open | |
54 | # vSwitch, but it causes trouble if you switch from a version with | |
55 | # foo/__init__.py into an (older) version with plain foo.py, since | |
56 | # foo/__init__.pyc will cause Python to ignore foo.py. | |
e23812fc BP |
57 | run_python = \ |
58 | PYTHONPATH=$(top_srcdir)/python$(psep)$$PYTHONPATH \ | |
59 | PYTHONDONTWRITEBYTECODE=yes $(PYTHON) | |
853d1083 | 60 | |
22c79496 | 61 | ALL_LOCAL = |
d879a707 | 62 | BUILT_SOURCES = |
064af421 | 63 | CLEANFILES = |
15b619e2 | 64 | CLEAN_LOCAL = |
064af421 | 65 | DISTCLEANFILES = |
79982e90 | 66 | PYCOV_CLEAN_FILES = build-aux/check-structs,cover |
4441a01c | 67 | |
c431227e | 68 | EXTRA_DIST = \ |
8a97dc6e | 69 | AUTHORS.rst \ |
255efa72 | 70 | CONTRIBUTING.rst \ |
2eb98b60 | 71 | MAINTAINERS.rst \ |
c431227e | 72 | README.rst \ |
4441a01c | 73 | NOTICE \ |
826bc7b6 | 74 | .travis.yml \ |
40a75bbf LR |
75 | .travis/linux-build.sh \ |
76 | .travis/linux-prepare.sh \ | |
77 | .travis/osx-build.sh \ | |
78 | .travis/osx-prepare.sh \ | |
12c96b8a | 79 | appveyor.yml \ |
0027492d | 80 | boot.sh \ |
c9b94429 | 81 | build-aux/cccl \ |
abc67c1e | 82 | build-aux/cksum-schema-check \ |
39916858 | 83 | build-aux/calculate-schema-cksum \ |
4441a01c | 84 | build-aux/dist-docs \ |
3828b456 | 85 | build-aux/dpdkstrip.pl \ |
6ca37677 | 86 | build-aux/sodepends.pl \ |
94512c4a | 87 | build-aux/soexpand.pl \ |
a4e3c495 | 88 | build-aux/xml2nroff \ |
6ca37677 | 89 | $(MAN_FRAGMENTS) \ |
1ce96d2a | 90 | $(MAN_ROOTS) \ |
ef9c432c | 91 | Vagrantfile \ |
673b80ea RB |
92 | Vagrantfile-FreeBSD \ |
93 | .mailmap | |
064af421 BP |
94 | bin_PROGRAMS = |
95 | sbin_PROGRAMS = | |
96 | bin_SCRIPTS = | |
87103e1f | 97 | DIST_HOOKS = |
064af421 | 98 | dist_man_MANS = |
3b12adda | 99 | dist_pkgdata_DATA = |
064af421 BP |
100 | dist_pkgdata_SCRIPTS = |
101 | dist_sbin_SCRIPTS = | |
b2df0225 | 102 | dist_scripts_SCRIPTS = |
429ebf21 | 103 | dist_scripts_DATA = |
b2df0225 | 104 | INSTALL_DATA_LOCAL = |
44852fdf | 105 | UNINSTALL_LOCAL = |
064af421 | 106 | man_MANS = |
0027492d | 107 | MAN_FRAGMENTS = |
6ca37677 | 108 | MAN_ROOTS = |
c3bb4bd7 | 109 | noinst_DATA = |
064af421 | 110 | noinst_HEADERS = |
38b7a52b | 111 | lib_LTLIBRARIES = |
994bfc29 | 112 | noinst_LTLIBRARIES = |
045b2e5c | 113 | noinst_man_MANS = |
064af421 BP |
114 | noinst_PROGRAMS = |
115 | noinst_SCRIPTS = | |
00732bf5 | 116 | OVSIDL_BUILT = |
9c16ed64 | 117 | pkgdata_DATA = |
b2df0225 | 118 | sbin_SCRIPTS = |
43bb5f82 | 119 | scripts_SCRIPTS = |
2c9907cd | 120 | completion_SCRIPTS = |
429ebf21 | 121 | scripts_DATA = |
c3bb4bd7 | 122 | SUFFIXES = |
15b619e2 | 123 | check_DATA = |
08d42548 | 124 | check_SCRIPTS = |
81696de0 | 125 | pkgconfig_DATA = |
115d8719 | 126 | FLAKE8_PYFILES = |
064af421 | 127 | |
43bb5f82 | 128 | scriptsdir = $(pkgdatadir)/scripts |
2c9907cd | 129 | completiondir = $(sysconfdir)/bash_completion.d |
81696de0 | 130 | pkgconfigdir = $(libdir)/pkgconfig |
43bb5f82 | 131 | |
9741af79 BP |
132 | # This ensures that files added to EXTRA_DIST are always distributed, |
133 | # even if they are inside an Automake if...endif conditional block that is | |
134 | # disabled by some particular "configure" run. For more information, see: | |
135 | # http://article.gmane.org/gmane.comp.sysutils.automake.general/10891 | |
136 | noinst_HEADERS += $(EXTRA_DIST) | |
137 | ||
064af421 | 138 | ro_c = echo '/* -*- mode: c; buffer-read-only: t -*- */' |
cbaa4ffe | 139 | ro_shell = printf '\043 Generated automatically -- do not modify! -*- buffer-read-only: t -*-\n' |
064af421 | 140 | |
c3bb4bd7 | 141 | SUFFIXES += .in |
064af421 | 142 | .in: |
ef44aa50 | 143 | $(AM_V_GEN)$(PERL) $(srcdir)/build-aux/soexpand.pl -I$(srcdir) < $< | \ |
aca1bb54 SF |
144 | sed \ |
145 | -e 's,[@]PKIDIR[@],$(PKIDIR),g' \ | |
146 | -e 's,[@]LOGDIR[@],$(LOGDIR),g' \ | |
147 | -e 's,[@]DBDIR[@],$(DBDIR),g' \ | |
148 | -e 's,[@]PERL[@],$(PERL),g' \ | |
149 | -e 's,[@]PYTHON[@],$(PYTHON),g' \ | |
150 | -e 's,[@]RUNDIR[@],$(RUNDIR),g' \ | |
151 | -e 's,[@]VERSION[@],$(VERSION),g' \ | |
152 | -e 's,[@]localstatedir[@],$(localstatedir),g' \ | |
153 | -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ | |
154 | -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ | |
155 | -e 's,[@]bindir[@],$(bindir),g' \ | |
156 | -e 's,[@]sbindir[@],$(sbindir),g' \ | |
157 | -e 's,[@]abs_builddir[@],$(abs_builddir),g' \ | |
158 | -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \ | |
159 | > $@.tmp | |
00961f7c | 160 | @if head -n 1 $@.tmp | grep '#!' > /dev/null; then \ |
aca1bb54 | 161 | chmod +x $@.tmp; \ |
3b135da3 | 162 | fi |
ef44aa50 | 163 | $(AM_V_at) mv $@.tmp $@ |
064af421 | 164 | |
99635791 BP |
165 | SUFFIXES += .xml |
166 | %: %.xml | |
167 | $(AM_V_GEN)$(run_python) $(srcdir)/build-aux/xml2nroff $< > $@.tmp \ | |
aca1bb54 SF |
168 | -I $(srcdir) \ |
169 | --version=$(VERSION) \ | |
170 | PKIDIR='$(PKIDIR)' \ | |
171 | LOGDIR='$(LOGDIR)' \ | |
172 | DBDIR='$(DBDIR)' \ | |
173 | PERL='$(PERL)' \ | |
174 | PYTHON='$(PYTHON)' \ | |
175 | RUNDIR='$(RUNDIR)' \ | |
176 | VERSION='$(VERSION)' \ | |
177 | localstatedir='$(localstatedir)' \ | |
178 | pkgdatadir='$(pkgdatadir)' \ | |
179 | sysconfdir='$(sysconfdir)' \ | |
180 | bindir='$(bindir)' \ | |
181 | sbindir='$(sbindir)' | |
99635791 BP |
182 | $(AM_v_at)mv $@.tmp $@ |
183 | ||
79982e90 EJ |
184 | clean-pycov: |
185 | cd $(srcdir) && rm -f $(PYCOV_CLEAN_FILES) | |
186 | CLEAN_LOCAL += clean-pycov | |
099cf485 | 187 | .PHONY: clean-pycov |
79982e90 | 188 | |
87103e1f BP |
189 | # If we're checked out from a Git repository, make sure that every |
190 | # file that is in Git is distributed. | |
39376d06 BP |
191 | ALL_LOCAL += dist-hook-git |
192 | dist-hook-git: distfiles | |
193 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \ | |
aca1bb54 SF |
194 | (cd datapath && $(MAKE) distfiles); \ |
195 | (cat distfiles; sed 's|^|datapath/|' datapath/distfiles) | \ | |
196 | LC_ALL=C sort -u > all-distfiles; \ | |
197 | (cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' | \ | |
198 | LC_ALL=C sort -u > all-gitfiles; \ | |
a6da6967 | 199 | LC_ALL=C comm -1 -3 all-distfiles all-gitfiles > missing-distfiles; \ |
aca1bb54 | 200 | if test -s missing-distfiles; then \ |
4207d631 | 201 | echo "The following files are in git but not the distribution:"; \ |
aca1bb54 SF |
202 | cat missing-distfiles; \ |
203 | exit 1; \ | |
204 | fi; \ | |
939f4522 BP |
205 | if LC_ALL=C grep '\.gitignore$$' all-distfiles; then \ |
206 | echo "See above for list of files that are distributed but"; \ | |
207 | echo "should not be."; \ | |
208 | exit 1; \ | |
209 | fi \ | |
87103e1f | 210 | fi |
39376d06 BP |
211 | CLEANFILES += all-distfiles all-gitfiles missing-distfiles |
212 | # The following is based on commands for the Automake "distdir" target. | |
213 | distfiles: Makefile | |
214 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
215 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
216 | list='$(DISTFILES)'; \ | |
217 | for file in $$list; do echo $$file; done | \ | |
218 | sed -e "s|^$$srcdirstrip/||;t" \ | |
a6da6967 | 219 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" | \ |
aca1bb54 | 220 | LC_ALL=C sort -u > $@ |
39376d06 | 221 | CLEANFILES += distfiles |
b4e1bf8b | 222 | .PHONY: dist-hook-git |
87103e1f | 223 | |
9e4ba008 BP |
224 | # Check that every .c file includes <config.h>. |
225 | ALL_LOCAL += config-h-check | |
226 | config-h-check: | |
227 | @cd $(srcdir); \ | |
228 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
229 | git --no-pager grep -L '#include <config\.h>' `git ls-files | grep '\.c$$' | \ |
230 | grep -vE '^datapath|^lib/sflow|^third-party|^datapath-windows|^python'`; \ | |
9e4ba008 | 231 | then \ |
aca1bb54 SF |
232 | echo "See above for list of violations of the rule that"; \ |
233 | echo "every C source file must #include <config.h>."; \ | |
234 | exit 1; \ | |
f7e6e24c TR |
235 | fi; \ |
236 | if grep '#include' include/openvswitch/*.h | \ | |
c458e4a3 YHW |
237 | grep -vE '(<.*>)|("openvswitch)|("openflow)'; \ |
238 | then \ | |
239 | echo "See above for list of violations of the rule that"; \ | |
240 | echo "public openvswitch header file should not include internal library."; \ | |
241 | exit 1; \ | |
242 | fi | |
9e4ba008 BP |
243 | .PHONY: config-h-check |
244 | ||
34582733 AS |
245 | # Check for printf() type modifiers that MSVC doesn't support. |
246 | ALL_LOCAL += printf-check | |
247 | printf-check: | |
8faeab72 DDP |
248 | @cd $(srcdir); \ |
249 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
250 | git --no-pager grep -n -E -e '%[-+ #0-9.*]*([ztj]|hh)' --and --not -e 'ovs_scan' `git ls-files | grep '\.[ch]$$' | \ |
251 | grep -vE '^datapath|^lib/sflow|^third-party'`; \ | |
34582733 | 252 | then \ |
aca1bb54 SF |
253 | echo "See above for list of violations of the rule that"; \ |
254 | echo "'z', 't', 'j', 'hh' printf() type modifiers are"; \ | |
692ac452 | 255 | echo "forbidden. See coding-style.rst for replacements."; \ |
aca1bb54 | 256 | exit 1; \ |
34582733 AS |
257 | fi |
258 | .PHONY: printf-check | |
259 | ||
1514b275 BP |
260 | # Check that certain data structures are always declared "static". |
261 | ALL_LOCAL += static-check | |
262 | static-check: | |
db5ce514 | 263 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ |
aca1bb54 SF |
264 | git --no-pager grep -n -E '^[ ]+(struct vlog_rate_limit|pthread_once_t|struct ovsthread_once).*=' $(srcdir); \ |
265 | then \ | |
266 | echo "See above for list of violations of the rule that "; \ | |
267 | echo "certain data structures must always be 'static'"; \ | |
268 | exit 1; \ | |
269 | fi | |
1514b275 | 270 | .PHONY: static-check |
db5ce514 | 271 | |
4958e3ee BP |
272 | # Check that assert.h is not used outside a whitelist of files. |
273 | ALL_LOCAL += check-assert-h-usage | |
274 | check-assert-h-usage: | |
275 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
276 | (cd $(srcdir) && git --no-pager grep -l -E '[<]assert.h[>]') | \ |
277 | $(EGREP) -v '^lib/(sflow_receiver|vlog).c$$|^tests/'; \ | |
278 | then \ | |
279 | echo "Files listed above unexpectedly #include <""assert.h"">."; \ | |
280 | echo "Please use ovs_assert (from util.h) instead of assert."; \ | |
281 | exit 1; \ | |
282 | fi | |
4958e3ee BP |
283 | .PHONY: check-assert-h-usage |
284 | ||
64746850 BP |
285 | # Check that LITTLE_ENDIAN and BIG_ENDIAN are not used unless BYTE_ORDER is |
286 | # also mentioned. (<endian.h> always defines the former two constants. They | |
287 | # must be compared to BYTE_ORDER to get the machine's correct endianness. But | |
288 | # it is better to use WORDS_BIGENDIAN.) | |
289 | ALL_LOCAL += check-endian | |
290 | check-endian: | |
291 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
292 | (cd $(srcdir) && git --no-pager grep -l -E \ |
293 | -e 'BIG_ENDIAN|LITTLE_ENDIAN' --and --not -e 'BYTE_ORDER' | \ | |
294 | $(EGREP) -v '^datapath/'); \ | |
295 | then \ | |
296 | echo "See above for list of files that misuse LITTLE""_ENDIAN"; \ | |
297 | echo "or BIG""_ENDIAN. Please use WORDS_BIGENDIAN instead."; \ | |
298 | exit 1; \ | |
299 | fi | |
64746850 BP |
300 | .PHONY: check-endian |
301 | ||
6a3e30f3 BP |
302 | ALL_LOCAL += thread-safety-check |
303 | thread-safety-check: | |
8faeab72 DDP |
304 | @cd $(srcdir); \ |
305 | if test -e .git && (git --version) >/dev/null 2>&1 && \ | |
aca1bb54 SF |
306 | grep -n -f build-aux/thread-safety-blacklist \ |
307 | `git ls-files | grep '\.[ch]$$' \ | |
308 | | $(EGREP) -v '^datapath|^lib/sflow|^third-party'` /dev/null \ | |
309 | | $(EGREP) -v ':[ ]*/?\*'; \ | |
6a3e30f3 | 310 | then \ |
aca1bb54 SF |
311 | echo "See above for list of calls to functions that are"; \ |
312 | echo "blacklisted due to thread safety issues"; \ | |
313 | exit 1; \ | |
6a3e30f3 BP |
314 | fi |
315 | EXTRA_DIST += build-aux/thread-safety-blacklist | |
c9172561 | 316 | .PHONY: thread-safety-check |
6a3e30f3 | 317 | |
0b2c7e69 BP |
318 | # Check that "ip" is used in preference to "ifconfig", because |
319 | # "ifconfig" is not installed ubiquitously anymore. | |
320 | ALL_LOCAL += check-ifconfig | |
321 | check-ifconfig: | |
322 | @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ | |
323 | (cd $(srcdir) && git --no-pager grep -l -E -e 'ifconfig' | \ | |
324 | $(EGREP) -v 'Makefile.am|ovs-vsctl-bashcomp|openvswitch-custom\.te'); \ | |
325 | then \ | |
326 | echo "See above for list of files that use or reference"; \ | |
327 | echo "'ifconfig'. Please use 'ip' instead."; \ | |
328 | exit 1; \ | |
329 | fi | |
330 | .PHONY: check-ifconfig | |
331 | ||
0027492d BP |
332 | if HAVE_GROFF |
333 | ALL_LOCAL += manpage-check | |
1261619f BP |
334 | manpage-check: $(man_MANS) $(dist_man_MANS) $(noinst_man_MANS) |
335 | @error=false; \ | |
336 | for manpage in $?; do \ | |
aca1bb54 SF |
337 | LANG=en_US.UTF-8 groff -w mac -w delim -w escape -w input -w missing -w tab -T utf8 -man -p -z $$manpage >$@.tmp 2>&1; \ |
338 | if grep warning: $@.tmp; then error=:; fi; \ | |
339 | rm -f $@.tmp; \ | |
0027492d | 340 | done; \ |
be09aa10 EJ |
341 | if $$error; then exit 1; else touch $@; fi |
342 | $(AM_V_GEN) touch -c $@ | |
0027492d BP |
343 | CLEANFILES += manpage-check |
344 | endif | |
345 | ||
115d8719 RB |
346 | if HAVE_FLAKE8 |
347 | ALL_LOCAL += flake8-check | |
007ec24d | 348 | # http://flake8.readthedocs.org/en/latest/warnings.html |
f3068bff RB |
349 | # All warnings explicitly selected or ignored should be listed below. |
350 | # | |
351 | # E***, W*** -- warnings from pep8 | |
352 | # E121 continuation line under-indented for hanging indent (only from flake8 v2.0) | |
353 | # E123 closing bracket does not match indentation of opening bracket's line | |
354 | # E125 continuation line with same indent as next logical line (only from flake8 v2.0) | |
355 | # E126 continuation line over-indented for hanging indent | |
356 | # E127 continuation line over-indented for visual indent | |
357 | # E128 continuation line under-indented for visual indent | |
358 | # E129 visually indented line with same indent as next logical line | |
359 | # E131 continuation line unaligned for hanging indent | |
360 | # W503 line break before binary operator | |
361 | # F*** -- warnings native to flake8 | |
362 | # F811 redefinition of unused <name> from line <N> (only from flake8 v2.0) | |
007ec24d NS |
363 | # D*** -- warnings from flake8-docstrings plugin |
364 | # H*** -- warnings from flake8 hacking plugin (custom style checks beyond PEP8) | |
f3068bff | 365 | # H231 Python 3.x incompatible 'except x,y:' construct |
56ec0611 | 366 | # H232 Python 3.x incompatible octal 077 should be written as 0o77 |
8ea171ab | 367 | # H233 Python 3.x incompatible use of print operator |
03756304 | 368 | # H238 old style class declaration, use new style (inherit from `object`) |
aca1bb54 | 369 | FLAKE8_SELECT = H231,H232,H233,H238 |
92d8490f | 370 | FLAKE8_IGNORE = E121,E123,E125,E126,E127,E128,E129,E131,W503,F811,D,H,I |
115d8719 | 371 | flake8-check: $(FLAKE8_PYFILES) |
308bf988 | 372 | $(FLAKE8_WERROR)$(AM_V_GEN) \ |
aca1bb54 SF |
373 | src='$^' && \ |
374 | flake8 $$src --select=$(FLAKE8_SELECT) $(FLAKE8_FLAGS) && \ | |
375 | flake8 $$src --ignore=$(FLAKE8_IGNORE) $(FLAKE8_FLAGS) && \ | |
376 | touch $@ | |
115d8719 | 377 | endif |
968eec59 | 378 | CLEANFILES += flake8-check |
115d8719 | 379 | |
6ca37677 BP |
380 | include $(srcdir)/manpages.mk |
381 | $(srcdir)/manpages.mk: $(MAN_ROOTS) build-aux/sodepends.pl | |
382 | @$(PERL) $(srcdir)/build-aux/sodepends.pl -I. -I$(srcdir) $(MAN_ROOTS) >$(@F).tmp | |
383 | @if cmp -s $(@F).tmp $@; then \ | |
aca1bb54 SF |
384 | touch $@; \ |
385 | rm -f $(@F).tmp; \ | |
6ca37677 | 386 | else \ |
aca1bb54 | 387 | mv $(@F).tmp $@; \ |
6ca37677 BP |
388 | fi |
389 | CLEANFILES += manpage-dep-check | |
390 | ||
bd9d7025 | 391 | if VSTUDIO_DDK |
e02b8fb0 AS |
392 | ALL_LOCAL += ovsext |
393 | ovsext: datapath-windows/ovsext.sln $(srcdir)/datapath-windows/include/OvsDpInterface.h | |
e90a8753 AS |
394 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" |
395 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" | |
bd9d7025 AS |
396 | |
397 | CLEAN_LOCAL += ovsext_clean | |
398 | ovsext_clean: datapath-windows/ovsext.sln | |
e90a8753 AS |
399 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" |
400 | MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean /property:Configuration="Win8.1$(VSTUDIO_CONFIG)" /property:Version="$(PACKAGE_VERSION)" | |
bd9d7025 | 401 | endif |
e02b8fb0 | 402 | .PHONY: ovsext |
bd9d7025 | 403 | |
30b79363 BB |
404 | clang-analyze: clean |
405 | @which clang scan-build >/dev/null 2>&1 || \ | |
aca1bb54 | 406 | (echo "Unable to find clang/scan-build, Install clang,clang-analyzer packages"; exit 1) |
30b79363 BB |
407 | @$(MKDIR_P) "$(srcdir)/tests/clang-analyzer-results" |
408 | @scan-build -o $(srcdir)/tests/clang-analyzer-results --use-cc=$(CC) $(MAKE) | |
409 | .PHONY: clang-analyze | |
410 | ||
87103e1f | 411 | dist-hook: $(DIST_HOOKS) |
22c79496 | 412 | all-local: $(ALL_LOCAL) |
15b619e2 | 413 | clean-local: $(CLEAN_LOCAL) |
b2df0225 | 414 | install-data-local: $(INSTALL_DATA_LOCAL) |
44852fdf BP |
415 | uninstall-local: $(UNINSTALL_LOCAL) |
416 | .PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL) $(INSTALL_DATA_LOCAL) $(UNINSTALL_LOCAL) | |
87103e1f | 417 | |
3a14d239 BP |
418 | modules_install: |
419 | if LINUX_ENABLED | |
420 | cd datapath/linux && $(MAKE) modules_install | |
421 | endif | |
422 | ||
4441a01c | 423 | dist-docs: |
6b304335 | 424 | VERSION=$(VERSION) MAKE='$(MAKE)' $(srcdir)/build-aux/dist-docs $(srcdir) $(docs) |
4441a01c BP |
425 | .PHONY: dist-docs |
426 | ||
8c254406 | 427 | include Documentation/automake.mk |
ed1be787 | 428 | include m4/automake.mk |
064af421 | 429 | include lib/automake.mk |
8cd4882f | 430 | include ofproto/automake.mk |
064af421 BP |
431 | include utilities/automake.mk |
432 | include tests/automake.mk | |
433 | include include/automake.mk | |
434 | include third-party/automake.mk | |
435 | include debian/automake.mk | |
436 | include vswitchd/automake.mk | |
f85f8ebb | 437 | include ovsdb/automake.mk |
c434706a | 438 | include rhel/automake.mk |
064af421 | 439 | include xenserver/automake.mk |
0be6140a | 440 | include python/automake.mk |
eeecce05 | 441 | include tutorial/automake.mk |
add17b69 | 442 | include vtep/automake.mk |
c803536e | 443 | include datapath-windows/automake.mk |
c640e3ce | 444 | include datapath-windows/include/automake.mk |
d183efc2 | 445 | include windows/automake.mk |
fe36184b | 446 | include ovn/automake.mk |
9b897c91 | 447 | include selinux/automake.mk |
e522804f | 448 | include build-aux/automake.mk |