1 zpool_CFLAGS = $(AM_CFLAGS)
2 zpool_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUUID_CFLAGS)
4 zpool_CPPFLAGS = $(AM_CPPFLAGS)
5 zpool_CPPFLAGS += -I$(srcdir)/%D%
8 CPPCHECKTARGETS += zpool
19 %D%/os/freebsd/zpool_vdev_os.c
24 %D%/os/linux/zpool_vdev_os.c
34 zpool_LDADD += $(LTLIBINTL)
39 zpool_LDADD += -lm $(LIBBLKID_LIBS) $(LIBUUID_LIBS)
41 dist_noinst_DATA += %D%/zpool.d/README
43 SHELLCHECKSCRIPTS += $(dist_zpoolexec_SCRIPTS)
44 zpoolexecdir = $(zfsexecdir)/zpool.d
45 dist_zpoolexec_SCRIPTS = \
52 %D%/zpool.d/fault_led \
54 %D%/zpool.d/hours_on \
56 %D%/zpool.d/iostat-10s \
57 %D%/zpool.d/iostat-1s \
59 %D%/zpool.d/locate_led \
64 %D%/zpool.d/nvme_err \
65 %D%/zpool.d/off_ucor \
66 %D%/zpool.d/pend_sec \
71 %D%/zpool.d/rep_ucor \
77 %D%/zpool.d/smart_test \
80 %D%/zpool.d/test_ended \
81 %D%/zpool.d/test_progress \
82 %D%/zpool.d/test_status \
83 %D%/zpool.d/test_type \
133 zpoolcompatdir = $(pkgdatadir)/compatibility.d
134 dist_zpoolcompat_DATA = \
135 %D%/compatibility.d/compat-2018 \
136 %D%/compatibility.d/compat-2019 \
137 %D%/compatibility.d/compat-2020 \
138 %D%/compatibility.d/compat-2021 \
139 %D%/compatibility.d/freebsd-11.0 \
140 %D%/compatibility.d/freebsd-11.2 \
141 %D%/compatibility.d/freebsd-11.3 \
142 %D%/compatibility.d/freenas-9.10.2 \
143 %D%/compatibility.d/grub2 \
144 %D%/compatibility.d/openzfs-2.0-freebsd \
145 %D%/compatibility.d/openzfs-2.0-linux \
146 %D%/compatibility.d/openzfs-2.1-freebsd \
147 %D%/compatibility.d/openzfs-2.1-linux \
148 %D%/compatibility.d/openzfsonosx-1.7.0 \
149 %D%/compatibility.d/openzfsonosx-1.8.1 \
150 %D%/compatibility.d/openzfsonosx-1.9.3 \
151 %D%/compatibility.d/zol-0.6.1 \
152 %D%/compatibility.d/zol-0.6.4 \
153 %D%/compatibility.d/zol-0.6.5 \
154 %D%/compatibility.d/zol-0.7 \
155 %D%/compatibility.d/zol-0.8
157 # canonical <- alias symbolic link pairs
158 # eg: "2018" is a link to "compat-2018"
164 "freebsd-11.0 freebsd-11.1" \
165 "freebsd-11.0 freenas-11.0" \
166 "freebsd-11.2 freenas-11.2" \
167 "freebsd-11.3 freebsd-11.4" \
168 "freebsd-11.3 freebsd-12.0" \
169 "freebsd-11.3 freebsd-12.1" \
170 "freebsd-11.3 freebsd-12.2" \
171 "freebsd-11.3 freenas-11.3" \
172 "freenas-11.0 freenas-11.1" \
173 "openzfsonosx-1.9.3 openzfsonosx-1.9.4" \
174 "openzfs-2.0-freebsd truenas-12.0" \
175 "zol-0.7 ubuntu-18.04" \
176 "zol-0.8 ubuntu-20.04"
178 zpoolconfdir = $(sysconfdir)/zfs/zpool.d
179 INSTALL_DATA_HOOKS += zpool-install-data-hook
180 zpool-install-data-hook:
181 $(MKDIR_P) "$(DESTDIR)$(zpoolconfdir)"
182 set -x; for f in $(zpoolconfdefaults); do \
183 [ -f "$(DESTDIR)$(zpoolconfdir)/$${f}" ] || \
184 [ -L "$(DESTDIR)$(zpoolconfdir)/$${f}" ] || \
185 $(LN_S) "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
187 set -x; printf '%s\n' $(zpoolcompatlinks) | \
188 while read -r canon alias; do \
189 $(LN_S) -f "$${canon}" "$(DESTDIR)$(zpoolcompatdir)/$${alias}"; \