EXTRA_DIST = \
	ifcfg-test-minimal \
	ifcfg-test-misc-variables \
	ifcfg-test-variables-corner-cases-1 \
	ifcfg-test-nm-controlled \
	ifcfg-test-nm-controlled-unrecognized \
	ifcfg-test-unrecognized \
	ifcfg-test-wired-static \
	ifcfg-test-wired-static-bootproto \
	ifcfg-test-wired-dhcp \
	ifcfg-test-wired-dhcp-plus-ip \
	ifcfg-test-wired-shared-plus-ip \
	ifcfg-test-wired-dhcp-send-hostname \
	ifcfg-test-wired-dhcp6-only \
	ifcfg-test-wired-autoip \
	ifcfg-test-wired-global-gateway \
	network-test-wired-global-gateway \
	ifcfg-test-wired-global-gateway-ignore \
	network-test-wired-global-gateway-ignore \
	ifcfg-test-wired-obsolete-gateway-n \
	ifcfg-test-wired-never-default \
	network-test-wired-never-default \
	ifcfg-test-wired-defroute-no \
	ifcfg-test-wired-defroute-no-gatewaydev-yes \
	network-test-wired-defroute-no-gatewaydev-yes \
	ifcfg-test-wired-8021x-peap-mschapv2 \
	keys-test-wired-8021x-peap-mschapv2 \
	ifcfg-test-wired-8021x-tls-agent \
	ifcfg-test-wired-8021x-tls-always \
	ifcfg-test-wired-802-1X-subj-matches \
	ifcfg-test-wired-802-1x-ttls-eapgtc \
	ifcfg-test-onboot-no \
	ifcfg-test-noip \
	ifcfg-test-wifi-open \
	ifcfg-test-wifi-open-auto \
	ifcfg-test-wifi-open-ssid-quoted \
	ifcfg-test-wifi-open-ssid-long-quoted \
	ifcfg-test-wifi-open-ssid-hex \
	ifcfg-test-wifi-open-ssid-long-hex \
	ifcfg-test-wifi-open-ssid-bad-hex \
	ifcfg-test-wifi-wep \
	keys-test-wifi-wep \
	ifcfg-test-wifi-wep-adhoc \
	keys-test-wifi-wep-adhoc \
	ifcfg-test-wifi-wep-eap-ttls-chap \
	keys-test-wifi-wep-eap-ttls-chap \
	ifcfg-test-wifi-leap \
	keys-test-wifi-leap \
	ifcfg-test-wifi-leap-agent \
	ifcfg-test-wifi-leap-always-ask \
	ifcfg-test-wifi-wpa-psk \
	keys-test-wifi-wpa-psk \
	ifcfg-test-wifi-wpa-psk-2 \
	keys-test-wifi-wpa-psk-2 \
	ifcfg-test-wifi-wpa-psk-unquoted \
	keys-test-wifi-wpa-psk-unquoted \
	ifcfg-test-wifi-wpa-psk-unquoted2 \
	keys-test-wifi-wpa-psk-unquoted2 \
	ifcfg-test-wifi-wpa-psk-adhoc \
	keys-test-wifi-wpa-psk-adhoc \
	ifcfg-test-wifi-wpa-psk-hex \
	keys-test-wifi-wpa-psk-hex \
	ifcfg-test-wifi-wpa-eap-tls \
	keys-test-wifi-wpa-eap-tls \
	ifcfg-test-wifi-wpa-eap-ttls-tls \
	keys-test-wifi-wpa-eap-ttls-tls \
	ifcfg-test-wifi-hidden \
	ifcfg-test-wifi-band-a \
	ifcfg-test-wifi-band-a-channel-mismatch \
	ifcfg-test-wifi-band-bg-channel-mismatch \
	ifcfg-test-wifi-mac-random-always \
	ifcfg-test-wifi-mac-random-never \
	ifcfg-test-wifi-mac-random-default \
	ifcfg-test-wifi-mac-random-missing \
	test_ca_cert.pem \
	test1_key_and_cert.pem \
	ifcfg-test-ibft \
	ifcfg-test-static-routes-legacy \
	route-test-static-routes-legacy \
	ifcfg-test-sit-ignore \
	ifcfg-test-wired-static-routes \
	route-test-wired-static-routes \
	ifcfg-test-wired-static-routes-legacy \
	route-test-wired-static-routes-legacy \
	ifcfg-test-wired-ipv4-manual-1 \
	ifcfg-test-wired-ipv4-manual-2 \
	ifcfg-test-wired-ipv4-manual-3 \
	ifcfg-test-wired-ipv4-manual-4 \
	ifcfg-test-wired-ipv6-manual \
	route6-test-wired-ipv6-manual \
	ifcfg-test-wired-static-no-prefix-8 \
	ifcfg-test-wired-static-no-prefix-16 \
	ifcfg-test-wired-static-no-prefix-24 \
	ifcfg-test-wired-ipv6-only \
	ifcfg-test-wifi-wep-passphrase \
	keys-test-wifi-wep-passphrase \
	ifcfg-test-wifi-wep-40-ascii \
	keys-test-wifi-wep-40-ascii \
	ifcfg-test-wifi-wep-104-ascii \
	keys-test-wifi-wep-104-ascii \
	ifcfg-test-wired-qeth-static \
	ifcfg-test-wired-ctc-static \
	ifcfg-test-bridge-main \
	ifcfg-test-bridge-component \
	ifcfg-test-bridge-missing-stp \
	ifcfg-test-vlan-interface \
	ifcfg-test-vlan-only-vlanid \
	ifcfg-test-vlan-only-device \
	ifcfg-test-vlan-physdev \
	ifcfg-test-vlan-reorder-hdr-1 \
	ifcfg-test-vlan-reorder-hdr-2 \
	ifcfg-test-vlan-flags-1 \
	ifcfg-test-vlan-flags-2 \
	ifcfg-test-wifi-wep-no-keys \
	ifcfg-test-permissions \
	ifcfg-test-wifi-wep-agent-keys \
	ifcfg-test-wifi-dynamic-wep-leap \
	keys-test-wifi-dynamic-wep-leap \
	ifcfg-test-infiniband \
	ifcfg-test-bond-main \
	ifcfg-test-bond-slave \
	ifcfg-test-bond-slave-ib \
	ifcfg-test-bond-mode-numeric \
	ifcfg-test-dcb \
	ifcfg-test-dcb-default-app-priorities \
	ifcfg-test-dcb-bad-booleans \
	ifcfg-test-dcb-short-booleans \
	ifcfg-test-dcb-bad-uints \
	ifcfg-test-dcb-short-uints \
	ifcfg-test-dcb-bad-percent \
	ifcfg-test-dcb-short-percent \
	ifcfg-test-dcb-pgpct-not-100 \
	ifcfg-test-fcoe-fabric \
	ifcfg-test-fcoe-vn2vn \
	ifcfg-test-team-master \
	ifcfg-test-team-port \
	ifcfg-test-team-port-empty-config \
	ifcfg-test-vlan-trailing-spaces \
	ifcfg-test-dns-options \
	ifcfg-test-wired-wake-on-lan \
	ifcfg-test-wired-ipv6-only-1

# make target dependencies can't have colons in their names, which ends up
# meaning that we can't add the alias files to EXTRA_DIST
ALIAS_FILES = \
	ifcfg-aliasem0 \
	ifcfg-aliasem0:1 \
	ifcfg-aliasem0:2 \
	ifcfg-aliasem0:99 \
	ifcfg-aliasem1 \
	ifcfg-aliasem1:1 \
	ifcfg-aliasem2 \
	ifcfg-aliasem2:1

dist-hook:
	@for f in $(ALIAS_FILES); do \
		cp $(abs_srcdir)/$$f $(distdir)/; \
	done

check-local:
	@for f in $(EXTRA_DIST) $(ALIAS_FILES); do \
		chmod 0600 $(abs_srcdir)/$$f; \
	done

# Make the special temp dir for some written connections
	mkdir -p $(abs_builddir)/tmp

