]> git.ipfire.org Git - people/ms/network.git/blob - Makefile.am
Disable copybreak
[people/ms/network.git] / Makefile.am
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2012-2013 IPFire Network Development Team #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
22 AM_MAKEFLAGS = --no-print-directory
23 AUTOMAKE_OPTIONS = color-tests
24
25 # remove target it the command fails
26 .DELETE_ON_ERROR:
27
28 # keep itermediate files
29 .SECONDARY:
30
31 configdir = $(sysconfdir)/network
32 bashcompletiondir= $(datadir)/bash-completion/completions
33 libexecdir = $(prefix)/lib
34 modprobedir = $(prefix)/lib/modprobe.d
35 pkgconfigdir = $(libdir)/pkgconfig
36 pppdir = $(sysconfdir)/ppp
37 systemconfigdir = $(datadir)/network
38 sysctldir = $(prefix)/lib/sysctl.d
39 tmpfilesdir = $(prefix)/lib/tmpfiles.d
40 udevrulesdir = $(udevdir)/rules.d
41
42 networkdir = $(libexecdir)/network
43 helpersdir = $(networkdir)/helpers
44
45 macrosdir = $(libexecdir)/firewall/macros
46
47 hooksdir = $(networkdir)/hooks
48 hooks_configsdir = $(hooksdir)/configs
49 hooks_portsdir = $(hooksdir)/ports
50 hooks_zonesdir = $(hooksdir)/zones
51
52 triggersdir = $(networkdir)/triggers
53
54 logdir = $(localestatedir)/log/network
55 utildir = $(networkdir)
56
57 CLEANFILES =
58 DISTCLEANFILES =
59 EXTRA_DIST =
60 INSTALL_DIRS =
61 INSTALL_EXEC_HOOKS =
62 UNINSTALL_EXEC_HOOKS =
63 noinst_DATA =
64
65 AM_CPPFLAGS = \
66 $(OUR_CPPFLAGS) \
67 -include $(top_builddir)/config.h \
68 -I${top_srcdir}/src/libnetwork
69
70 AM_CFLAGS = \
71 $(OUR_CFLAGS) \
72 -fvisibility=hidden \
73 -ffunction-sections \
74 -fdata-sections
75
76 AM_LDFLAGS = \
77 $(OUR_LDFLAGS) \
78 -Wl,--gc-sections \
79 -Wl,--as-needed
80
81 DISTCHECK_CONFIGURE_FLAGS = \
82 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
83 --with-udevdir=$$dc_install_base/$(udevdir)
84
85 install-directories-hook:
86 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
87
88 INSTALL_EXEC_HOOKS += \
89 install-directories-hook
90
91 # ------------------------------------------------------------------------------
92
93 AM_V_ASCIIDOC = $(AM_V_ASCIIDOC_$(V))
94 AM_V_ASCIIDOC_ = $(AM_V_ASCIIDOC_$(AM_DEFAULT_VERBOSITY))
95 AM_V_ASCIIDOC_0 = @echo " ASCIIDOC" $@;
96
97 AM_V_DOWNLOAD = $(AM_V_DOWNLOAD_$(V))
98 AM_V_DOWNLOAD_ = $(AM_V_DOWNLOAD_$(AM_DEFAULT_VERBOSITY))
99 AM_V_DOWNLOAD_0 = @echo " LOAD " $@;
100
101 AM_V_NITSI = $(AM_V_NITSI_$(V))
102 AM_V_NITSI_ = $(AM_V_NITSI_$(AM_DEFAULT_VERBOSITY))
103 AM_V_NITSI_0 = @echo " NITSI " $@;
104
105 AM_V_XSLT = $(AM_V_XSLT_$(V))
106 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
107 AM_V_XSLT_0 = @echo " XSLT " $@;
108
109 # ------------------------------------------------------------------------------
110
111 dist_doc_DATA = \
112 README \
113 docs/CODING_STYLE \
114 docs/COPYING
115
116 dist_sbin_SCRIPTS = \
117 src/dhclient-script \
118 src/firewall \
119 src/network
120
121 network_DATA = \
122 src/functions/functions
123
124 CLEANFILES += \
125 src/functions/functions
126
127 EXTRA_DIST += \
128 src/functions/functions.in
129
130 dist_network_DATA = \
131 src/functions/functions.at \
132 src/functions/functions.auth \
133 src/functions/functions.bird \
134 src/functions/functions.bonding \
135 src/functions/functions.bridge \
136 src/functions/functions.cli \
137 src/functions/functions.cli.firewall \
138 src/functions/functions.colors \
139 src/functions/functions.config \
140 src/functions/functions.conntrack \
141 src/functions/functions.constants \
142 src/functions/functions.constants-firewall \
143 src/functions/functions.db \
144 src/functions/functions.description \
145 src/functions/functions.device \
146 src/functions/functions.dhclient \
147 src/functions/functions.dhcpd \
148 src/functions/functions.distro \
149 src/functions/functions.dns \
150 src/functions/functions.dummy \
151 src/functions/functions.editor \
152 src/functions/functions.firewall \
153 src/functions/functions.firewall-policy \
154 src/functions/functions.firewall-zones \
155 src/functions/functions.he \
156 src/functions/functions.hook \
157 src/functions/functions.hostapd \
158 src/functions/functions.hotplug \
159 src/functions/functions.http \
160 src/functions/functions.interrupts \
161 src/functions/functions.ip \
162 src/functions/functions.ipsec \
163 src/functions/functions.ipsec-pool \
164 src/functions/functions.iptables \
165 src/functions/functions.ip-tunnel \
166 src/functions/functions.ipv4 \
167 src/functions/functions.ipv6 \
168 src/functions/functions.leds \
169 src/functions/functions.list \
170 src/functions/functions.lock \
171 src/functions/functions.logging \
172 src/functions/functions.macros \
173 src/functions/functions.modem \
174 src/functions/functions.offloading \
175 src/functions/functions.phy \
176 src/functions/functions.ports \
177 src/functions/functions.ppp \
178 src/functions/functions.pppoe-server \
179 src/functions/functions.route \
180 src/functions/functions.routing \
181 src/functions/functions.serial \
182 src/functions/functions.service \
183 src/functions/functions.settings \
184 src/functions/functions.stp \
185 src/functions/functions.sysctl \
186 src/functions/functions.system \
187 src/functions/functions.triggers \
188 src/functions/functions.usb \
189 src/functions/functions.util \
190 src/functions/functions.vlan \
191 src/functions/functions.vpn \
192 src/functions/functions.vpn-security-policies \
193 src/functions/functions.wireless \
194 src/functions/functions.wireless-mesh \
195 src/functions/functions.wireless-networks \
196 src/functions/functions.wpa_supplicant \
197 src/functions/functions.zone \
198 src/header-config \
199 src/header-port \
200 src/header-zone
201
202 dist_network_SCRIPTS = \
203 src/dhclient-helper \
204 src/ppp/dialer \
205 src/ppp/pppoe-server
206
207 dist_helpers_SCRIPTS = \
208 src/helpers/dhcpd-config-helper \
209 src/helpers/hostapd-config-helper \
210 src/helpers/ipsec-updown \
211 src/helpers/pppd-angel \
212 src/helpers/wpa_supplicant
213
214 bin_PROGRAMS = \
215 src/inetcalc
216
217 src_inetcalc_SOURCES = \
218 src/inetcalc.c
219
220 src_inetcalc_LDADD = \
221 src/libnetwork.la
222
223 dist_hooks_configs_SCRIPTS = \
224 src/hooks/configs/dhcp \
225 src/hooks/configs/ipv6-auto \
226 src/hooks/configs/pppoe-server \
227 src/hooks/configs/static
228
229 dist_hooks_ports_SCRIPTS = \
230 src/hooks/ports/bonding \
231 src/hooks/ports/dummy \
232 src/hooks/ports/ethernet \
233 src/hooks/ports/ip-tunnel \
234 src/hooks/ports/vlan \
235 src/hooks/ports/wireless-ap \
236 src/hooks/ports/wireless-mesh
237
238 dist_hooks_zones_SCRIPTS = \
239 src/hooks/zones/bridge \
240 src/hooks/zones/ip-tunnel \
241 src/hooks/zones/modem \
242 src/hooks/zones/pppoe \
243 src/hooks/zones/wireless
244
245 INSTALL_DIRS += \
246 $(configdir) \
247 $(configdir)/ports \
248 $(configdir)/vpn \
249 $(configdir)/vpn/ipsec/connections \
250 $(configdir)/vpn/security-policies \
251 $(configdir)/wireless \
252 $(configdir)/wireless/networks \
253 $(configdir)/zones
254
255 # ------------------------------------------------------------------------------
256
257 LIBNETWORK_CURRENT=0
258 LIBNETWORK_REVISION=0
259 LIBNETWORK_AGE=0
260
261 pkginclude_HEADERS = \
262 src/libnetwork/network/interface.h \
263 src/libnetwork/network/libnetwork.h \
264 src/libnetwork/network/logging.h \
265 src/libnetwork/network/phy.h
266
267 lib_LTLIBRARIES = \
268 src/libnetwork.la
269
270 src_libnetwork_la_SOURCES = \
271 src/libnetwork/interface.c \
272 src/libnetwork/libnetwork-private.h \
273 src/libnetwork/libnetwork.c \
274 src/libnetwork/phy.c
275
276 src_libnetwork_la_LIBADD = \
277 $(LIBNL_LIBS)
278
279 src_libnetwork_la_CPPFLAGS = \
280 $(AM_CPPFLAGS) \
281 $(LIBNL_CPPFLAGS) \
282 -D_GNU_SOURCE \
283 -DNETWORK_PRIVATE
284
285 src_libnetwork_la_CFLAGS = \
286 $(AM_CFLAGS) \
287 $(LIBNL_CFLAGS)
288
289 src_libnetwork_la_LDFLAGS = \
290 $(AM_LDFLAGS) \
291 -version-info $(LIBNETWORK_CURRENT):$(LIBNETWORK_REVISION):$(LIBNETWORK_AGE) \
292 -Wl,--version-script=$(top_srcdir)/src/libnetwork/libnetwork.sym
293
294 src_libnetwork_la_DEPENDENCIES = \
295 src/libnetwork/libnetwork.sym
296
297 EXTRA_DIST += \
298 src/libnetwork/libnetwork.sym
299
300 # ------------------------------------------------------------------------------
301
302 util_PROGRAMS = \
303 src/utils/network-phy-list-channels \
304 src/utils/network-phy-list-ciphers \
305 src/utils/network-phy-list-ht-caps \
306 src/utils/network-phy-list-vht-caps
307
308 src_utils_network_phy_list_channels_SOURCES = \
309 src/utils/network-phy-list-channels.c
310
311 src_utils_network_phy_list_channels_LDADD = \
312 src/libnetwork.la
313
314 src_utils_network_phy_list_ciphers_SOURCES = \
315 src/utils/network-phy-list-ciphers.c
316
317 src_utils_network_phy_list_ciphers_LDADD = \
318 src/libnetwork.la
319
320 src_utils_network_phy_list_ht_caps_SOURCES = \
321 src/utils/network-phy-list-ht-caps.c
322
323 src_utils_network_phy_list_ht_caps_LDADD = \
324 src/libnetwork.la
325
326 src_utils_network_phy_list_vht_caps_SOURCES = \
327 src/utils/network-phy-list-vht-caps.c
328
329 src_utils_network_phy_list_vht_caps_LDADD = \
330 src/libnetwork.la
331
332 # ------------------------------------------------------------------------------
333
334 ppp_SCRIPTS = \
335 src/ppp/ip-updown
336
337 CLEANFILES += \
338 src/ppp/ip-updown
339
340 EXTRA_DIST += \
341 src/ppp/ip-updown.in
342
343 INSTALL_DIRS += \
344 $(pppdir) \
345 $(logdir)
346
347 ppp-install-hook:
348 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up
349 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up
350 ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down
351 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up
352 ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down
353
354 ppp-uninstall-hook:
355 rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up}
356 rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up}
357
358 INSTALL_EXEC_HOOKS += ppp-install-hook
359 UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook
360
361 # ------------------------------------------------------------------------------
362
363 if HAVE_SYSTEMD
364 systemdsystemunit_DATA = \
365 src/systemd/firewall.service \
366 src/systemd/firewall-init.service \
367 src/systemd/network-init.service \
368 src/systemd/network@.service
369
370 CLEANFILES += \
371 $(systemdsystemunit_DATA)
372
373 INSTALL_DIRS += \
374 $(systemdsystemunitdir)
375 endif
376
377 EXTRA_DIST += \
378 src/systemd/firewall.service.in \
379 src/systemd/firewall-init.service.in \
380 src/systemd/network-init.service.in \
381 src/systemd/network@.service.in
382
383 # ------------------------------------------------------------------------------
384
385 systemconfig_vpndir = $(systemconfigdir)/vpn
386
387 dist_systemconfig_vpn_security_policies_DATA = \
388 config/vpn/security-policies/performance \
389 config/vpn/security-policies/system
390
391 systemconfig_vpn_security_policiesdir = $(systemconfig_vpndir)/security-policies
392
393 # ------------------------------------------------------------------------------
394
395 dist_sysctl_DATA = \
396 src/sysctl/network.conf
397
398 # ------------------------------------------------------------------------------
399
400 dist_modprobe_DATA = \
401 src/modprobe.d/no-copybreak.conf
402
403 # ------------------------------------------------------------------------------
404
405 dist_bashcompletion_SCRIPTS = \
406 src/bash-completion/network
407
408 # ------------------------------------------------------------------------------
409
410 dist_tmpfiles_DATA = \
411 src/tmpfiles/network.conf
412
413 # ------------------------------------------------------------------------------
414
415 if HAVE_UDEV
416 dist_udev_SCRIPTS = \
417 src/udev/network-hotplug \
418 src/udev/network-hotplug-rename \
419 src/udev/network-hotplug-serial
420
421 dist_udevrules_DATA = \
422 src/udev/rules.d/50-serial-whitelist.rules \
423 src/udev/rules.d/60-net.rules
424
425 INSTALL_DIRS += \
426 $(udevdir) \
427 $(udevrulesdir)
428 endif
429
430 # ------------------------------------------------------------------------------
431
432 pkgconfig_DATA = \
433 src/network.pc
434
435 CLEANFILES += \
436 $(pkgconfig_DATA)
437
438 EXTRA_DIST += \
439 src/network.pc.in
440
441 # ------------------------------------------------------------------------------
442
443 dist_macros_DATA = \
444 src/macros/DHCP \
445 src/macros/HTTP \
446 src/macros/HTTPS \
447 src/macros/WWW
448
449 # ------------------------------------------------------------------------------
450
451 INSTALL_DIRS += \
452 $(triggersdir)
453
454 # ------------------------------------------------------------------------------
455
456 MANPAGES = \
457 man/firewall-settings.8 \
458 man/network.8 \
459 man/network-device.8 \
460 man/network-dhcp.8 \
461 man/network-dns-server.8 \
462 man/network-performance-tuning.8 \
463 man/network-port.8 \
464 man/network-quick-start.8 \
465 man/network-route.8 \
466 man/network-route-static.8 \
467 man/network-settings.8 \
468 man/network-vpn.8 \
469 man/network-vpn-ipsec.8 \
470 man/network-vpn-security-policies.8 \
471 man/network-zone.8 \
472 man/network-zone-bridge.8 \
473 man/network-zone-config-pppoe-server.8 \
474 man/network-zone-ip-tunnel.8 \
475 man/network-zone-modem.8 \
476 man/network-zone-pppoe.8 \
477 man/network-zone-wireless.8
478
479 EXTRA_DIST += \
480 man/include-color.txt \
481 man/include-description.txt
482
483 MANPAGES_TXT = $(patsubst %.8,%.txt,$(MANPAGES))
484 MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT))
485 MANPAGES_XML = $(patsubst %.txt,%.xml,$(MANPAGES_TXT))
486
487 .PHONY: man
488 man: $(MANPAGES) $(MANPAGES_HTML)
489
490 if ENABLE_MANPAGES
491 man_MANS = \
492 $(MANPAGES)
493 endif
494
495 CLEANFILES += \
496 $(MANPAGES) \
497 $(MANPAGES_HTML) \
498 $(MANPAGES_XML)
499
500 EXTRA_DIST += \
501 man/asciidoc.conf \
502 $(MANPAGES_TXT)
503
504 XSLTPROC_FLAGS = \
505 --nonet \
506 --stringparam man.output.quietly 1 \
507 --stringparam funcsynopsis.style ansi \
508 --stringparam man.th.extra1.suppress 1 \
509 --stringparam man.authors.section.enabled 1 \
510 --stringparam man.copyright.section.enabled 1
511
512 XSLTPROC_COMMAND_MAN = \
513 $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
514 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \
515 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
516
517 man/%.xml: man/%.txt man/asciidoc.conf
518 $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \
519 $(ASCIIDOC) \
520 -f $(abs_srcdir)/man/asciidoc.conf \
521 -d manpage -b docbook -o $@ $<
522
523 man/%.8: man/%.xml
524 $(XSLTPROC_COMMAND_MAN)
525
526 man/%.html: man/%.txt man/asciidoc.conf
527 $(AM_V_ASCIIDOC)$(MKDIR_P) $(dir $@) && \
528 $(ASCIIDOC) \
529 -f $(abs_srcdir)/man/asciidoc.conf \
530 -b html5 -a icons -a theme=flask -o $@ $<
531
532 .PHONY: upload-man
533 upload-man: $(MANPAGES_HTML)
534 rsync -avHz --delete --progress $(MANPAGES_HTML) ms@people.ipfire.org:/pub/man-pages/$(PACKAGE_NAME)/
535
536 # ------------------------------------------------------------------------------
537
538 substitutions = \
539 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
540 '|PACKAGE_URL=$(PACKAGE_URL)|' \
541 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
542 '|builddir=$(abs_builddir)|' \
543 '|prefix=$(prefix)|' \
544 '|exec_prefix=$(exec_prefix)|' \
545 '|sbindir=$(sbindir)|' \
546 '|networkdir=$(networkdir)|' \
547 '|helpersdir=$(helpersdir)|' \
548 '|utildir=$(utildir)|' \
549 '|VIRTUAL_ENVIRONMENT_IMAGES_DIR=$(VIRTUAL_ENVIRONMENT_IMAGES_DIR)|'
550
551 SED_PROCESS = \
552 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
553 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
554 < $< > $@
555
556 %: %.in Makefile
557 $(SED_PROCESS)
558
559 INSTALL_DIRS += \
560 $(sbindir)
561
562 install-exec-hook: $(INSTALL_EXEC_HOOKS)
563
564 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
565
566 # - testsuite ------------------------------------------------------------------
567
568 TESTS_ENVIRONMENT = \
569 LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(LD_LIBRARY_PATH) \
570 PATH=$(top_builddir)/src:$(PATH) \
571 functions=$(abs_builddir)/src/functions/functions \
572 networkdir=$(abs_srcdir)/src/functions \
573 testdir=$(top_srcdir)/test
574
575 dist_check_DATA = \
576 test/constants.sh \
577 test/test-functions
578
579 dist_check_SCRIPTS = \
580 $(TESTS)
581
582 TESTS = \
583 test/load-library \
584 test/functions/ip/ip_detect_protocol \
585 test/functions/ip/ip_get_prefix \
586 test/functions/ip/ip_net_is_valid \
587 test/functions/ip/ip_is_valid \
588 test/functions/ip/ip_network_is_subnet_of \
589 test/functions/ip/ip_prefix_is_valid \
590 test/functions/ip/ip_protocol_is_supported \
591 test/functions/ip/ip_split_prefix
592
593 # - NITSI tests ----------------------------------------------------------------
594
595 # Files for the virtual environment
596 VIRTUAL_ENVIRONMENT_FILES = \
597 test/nitsi/virtual-environment/basic/machines/alice/machine.xml \
598 test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \
599 test/nitsi/virtual-environment/basic/machines/bob/machine.xml \
600 test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \
601 test/nitsi/virtual-environment/basic/network/network1/network.xml \
602 test/nitsi/virtual-environment/basic/network/network2/network.xml \
603 test/nitsi/virtual-environment/basic/network/network3/network.xml \
604 test/nitsi/virtual-environment/basic/network/network4/network.xml \
605 test/nitsi/virtual-environment/basic/settings
606
607 EXTRA_DIST += \
608 test/nitsi/virtual-environment/basic/machines/alice/machine.xml.in \
609 test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml.in \
610 test/nitsi/virtual-environment/basic/machines/bob/machine.xml.in \
611 test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml.in \
612 test/nitsi/virtual-environment/basic/settings.in
613
614 CLEANFILES += \
615 test/nitsi/virtual-environment/basic/machines/alice/machine.xml \
616 test/nitsi/virtual-environment/basic/machines/alice/snapshot.xml \
617 test/nitsi/virtual-environment/basic/machines/bob/machine.xml \
618 test/nitsi/virtual-environment/basic/machines/bob/snapshot.xml \
619 test/nitsi/virtual-environment/basic/settings
620
621 # Virtual Machine Images
622 VIRTUAL_ENVIRONMENT_IMAGES = \
623 $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-alice-2.qcow2 \
624 $(VIRTUAL_ENVIRONMENT_IMAGES_DIR)/ipfire-bob.qcow2
625
626 DISTCLEANFILES += \
627 $(VIRTUAL_ENVIRONMENT_IMAGES)
628
629 VIRTUAL_ENVIRONMENT_IMAGES_DIR = $(abs_builddir)/test/nitsi/virtual-environment/.images
630 VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL = \
631 https://people.ipfire.org/~jschlag/nitsi-ipfire/virtual-environment/basic/
632
633 NITSI_INCLUDE_RECIPES = \
634 test/nitsi/include/setup
635
636 EXTRA_DIST += \
637 test/nitsi/include/setup.in
638
639 CLEANFILES += \
640 test/nitsi/include/setup
641
642 NITSI_TESTS = \
643 test/nitsi/test/make-check \
644 test/nitsi/test/phase1 \
645 test/nitsi/test/pppoe \
646 test/nitsi/test/raw-device-get-by-mac \
647 test/nitsi/test/zone-new-bridge \
648 test/nitsi/test/zone-port-attach-bridge \
649 test/nitsi/test/zone/ip-tunnel/gre6 \
650 test/nitsi/test/zone/ip-tunnel/gre4 \
651 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4 \
652 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6 \
653 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4 \
654 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6 \
655 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4 \
656 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6 \
657 test/nitsi/test/port-vlan
658
659 EXTRA_DIST += \
660 test/nitsi/test/settings.in \
661 test/nitsi/test/make-check/recipe.in \
662 test/nitsi/test/make-check/settings.in \
663 test/nitsi/test/raw-device-get-by-mac/recipe \
664 test/nitsi/test/raw-device-get-by-mac/settings.in \
665 test/nitsi/test/zone-new-bridge/recipe \
666 test/nitsi/test/zone-new-bridge/settings.in \
667 test/nitsi/test/zone-port-attach-bridge/recipe \
668 test/nitsi/test/zone-port-attach-bridge/settings.in \
669 test/nitsi/test/zone/ip-tunnel/gre6/recipe \
670 test/nitsi/test/zone/ip-tunnel/gre6/settings \
671 test/nitsi/test/zone/ip-tunnel/gre4/recipe \
672 test/nitsi/test/zone/ip-tunnel/gre4/settings \
673 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/recipe \
674 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv4/settings \
675 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/recipe \
676 test/nitsi/test/vpn/ipsec/n2n/vti/ipv4-via-ipv6/settings \
677 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/recipe \
678 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv4/settings \
679 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/recipe \
680 test/nitsi/test/vpn/ipsec/n2n/vti/ipv6-via-ipv6/settings \
681 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/recipe \
682 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv4/settings \
683 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/recipe \
684 test/nitsi/test/vpn/ipsec/n2n/vti/ipv64-via-ipv6/settings \
685 test/nitsi/test/port-vlan/recipe \
686 test/nitsi/test/port-vlan/settings
687
688 CLEANFILES += \
689 test/nitsi/test/settings \
690 test/nitsi/test/make-check/recipe \
691 test/nitsi/test/make-check/settings \
692 test/nitsi/test/raw-device-get-by-mac/settings \
693 test/nitsi/test/zone-new-bridge/settings \
694 test/nitsi/test/zone-port-attach-bridge/settings
695
696 NITSI_ENVIRONMENT =
697
698 .PHONY: $(NITSI_TESTS)
699 $(NITSI_TESTS): % : dist %/recipe %/settings test/nitsi/test/settings $(VIRTUAL_ENVIRONMENT_FILES) $(VIRTUAL_ENVIRONMENT_IMAGES) $(NITSI_INCLUDE_RECIPES)
700 $(AM_V_NITSI) $(NITSI_ENVIRONMENT) $(NITSI) --log-level error run-test -d $@ \
701 --default-settings $(abs_builddir)/test/nitsi/test/settings --interactive-error-handling
702
703 .PHONY: nitsi
704 nitsi: $(NITSI_TESTS)
705
706 # Downloads a virtual image file and extracts it
707 $(VIRTUAL_ENVIRONMENT_IMAGES):
708 $(AM_V_DOWNLOAD)$(MKDIR_P) $(dir $@) && \
709 $(WGET) -qO - $(VIRTUAL_ENVIRONMENT_IMAGES_DOWNLOAD_URL)/$(notdir $@).xz | xz -qd > $@