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