]> git.proxmox.com Git - mirror_zfs.git/blame - Makefile.in
Cleanly support debug packages
[mirror_zfs.git] / Makefile.in
CommitLineData
e70e591c
BB
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
6ba3b446
PS
18###############################################################################
19# Written by Prakash Surya <surya1@llnl.gov>
20###############################################################################
21# Build targets for RPM packages.
22###############################################################################
23
e70e591c
BB
24VPATH = @srcdir@
25pkgdatadir = $(datadir)/@PACKAGE@
26pkgincludedir = $(includedir)/@PACKAGE@
27pkglibdir = $(libdir)/@PACKAGE@
28pkglibexecdir = $(libexecdir)/@PACKAGE@
29am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
30install_sh_DATA = $(install_sh) -c -m 644
31install_sh_PROGRAM = $(install_sh) -c
32install_sh_SCRIPT = $(install_sh) -c
33INSTALL_HEADER = $(INSTALL_DATA)
34transform = $(program_transform_name)
35NORMAL_INSTALL = :
36PRE_INSTALL = :
37POST_INSTALL = :
38NORMAL_UNINSTALL = :
39PRE_UNINSTALL = :
40POST_UNINSTALL = :
41build_triplet = @build@
42host_triplet = @host@
43target_triplet = @target@
44DIST_COMMON = $(am__configure_deps) $(noinst_HEADERS) \
45 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
6ba3b446 46 $(srcdir)/PKGBUILD-zfs-modules.in $(srcdir)/PKGBUILD-zfs.in \
6283f55e
BB
47 $(srcdir)/zfs-modules.spec.in \
48 $(srcdir)/zfs-script-config.sh.in $(srcdir)/zfs.spec.in \
6ba3b446
PS
49 $(srcdir)/zfs_config.h.in $(top_srcdir)/config/arch.am \
50 $(top_srcdir)/config/deb.am $(top_srcdir)/config/rpm.am \
51 $(top_srcdir)/config/tgz.am $(top_srcdir)/configure \
52 $(top_srcdir)/module/Makefile.in \
e70e591c
BB
53 $(top_srcdir)/module/avl/Makefile.in \
54 $(top_srcdir)/module/nvpair/Makefile.in \
55 $(top_srcdir)/module/unicode/Makefile.in \
56 $(top_srcdir)/module/zcommon/Makefile.in \
57 $(top_srcdir)/module/zfs/Makefile.in \
58 $(top_srcdir)/module/zpios/Makefile.in AUTHORS COPYING \
6283f55e
BB
59 ChangeLog config/config.guess config/config.sub config/depcomp \
60 config/install-sh config/ltmain.sh config/missing
e70e591c
BB
61subdir = .
62ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
63am__aclocal_m4_deps = \
2e08aedb 64 $(top_srcdir)/config/always-no-unused-but-set-variable.m4 \
e70e591c
BB
65 $(top_srcdir)/config/kernel-bdev-block-device-operations.m4 \
66 $(top_srcdir)/config/kernel-bdev-logical-size.m4 \
5547c2f1 67 $(top_srcdir)/config/kernel-bdi-setup-and-register.m4 \
76659dc1 68 $(top_srcdir)/config/kernel-bdi.m4 \
e70e591c
BB
69 $(top_srcdir)/config/kernel-bio-empty-barrier.m4 \
70 $(top_srcdir)/config/kernel-bio-end-io-t-args.m4 \
2959d94a 71 $(top_srcdir)/config/kernel-bio-failfast.m4 \
e70e591c
BB
72 $(top_srcdir)/config/kernel-bio-rw-syncio.m4 \
73 $(top_srcdir)/config/kernel-blk-end-request.m4 \
74 $(top_srcdir)/config/kernel-blk-fetch-request.m4 \
30930fba 75 $(top_srcdir)/config/kernel-blk-queue-discard.m4 \
b18019d2 76 $(top_srcdir)/config/kernel-blk-queue-flush.m4 \
34037afe
ED
77 $(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
78 $(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
79 $(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
80 $(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
81 $(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
e70e591c
BB
82 $(top_srcdir)/config/kernel-blk-requeue-request.m4 \
83 $(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
84 $(top_srcdir)/config/kernel-blk-rq-pos.m4 \
85 $(top_srcdir)/config/kernel-blk-rq-sectors.m4 \
45066d1f 86 $(top_srcdir)/config/kernel-blkdev-get-by-path.m4 \
df554c14 87 $(top_srcdir)/config/kernel-check-disk-size-change.m4 \
055656d4 88 $(top_srcdir)/config/kernel-d-obtain-alias.m4 \
2c395def 89 $(top_srcdir)/config/kernel-evict-inode.m4 \
cb2d1901 90 $(top_srcdir)/config/kernel-fallocate.m4 \
e70e591c 91 $(top_srcdir)/config/kernel-fmode-t.m4 \
7268e1be 92 $(top_srcdir)/config/kernel-fsync.m4 \
e70e591c 93 $(top_srcdir)/config/kernel-get-disk-ro.m4 \
bdf4328b 94 $(top_srcdir)/config/kernel-insert-inode-locked.m4 \
e70e591c
BB
95 $(top_srcdir)/config/kernel-invalidate-bdev-args.m4 \
96 $(top_srcdir)/config/kernel-kobj-name-len.m4 \
2cf7f52b 97 $(top_srcdir)/config/kernel-mount-nodev.m4 \
e70e591c
BB
98 $(top_srcdir)/config/kernel-open-bdev-exclusive.m4 \
99 $(top_srcdir)/config/kernel-rq-for-each_segment.m4 \
100 $(top_srcdir)/config/kernel-rq-is_sync.m4 \
5c03efc3 101 $(top_srcdir)/config/kernel-security-inode-init.m4 \
28eb9213 102 $(top_srcdir)/config/kernel-set-nlink.m4 \
47621f3d 103 $(top_srcdir)/config/kernel-show-options.m4 \
ab26409d 104 $(top_srcdir)/config/kernel-shrink.m4 \
b3129792 105 $(top_srcdir)/config/kernel-truncate-setsize.m4 \
777d4af8 106 $(top_srcdir)/config/kernel-xattr-handler.m4 \
e70e591c
BB
107 $(top_srcdir)/config/kernel.m4 \
108 $(top_srcdir)/config/user-arch.m4 \
109 $(top_srcdir)/config/user-frame-larger-than.m4 \
110 $(top_srcdir)/config/user-ioctl.m4 \
111 $(top_srcdir)/config/user-libblkid.m4 \
e70e591c
BB
112 $(top_srcdir)/config/user-libuuid.m4 \
113 $(top_srcdir)/config/user-nptl_guard_within_stack.m4 \
b3259b6a 114 $(top_srcdir)/config/user-selinux.m4 \
de0a1c09 115 $(top_srcdir)/config/user-udev.m4 \
e70e591c
BB
116 $(top_srcdir)/config/user-zlib.m4 $(top_srcdir)/config/user.m4 \
117 $(top_srcdir)/config/zfs-build.m4 \
118 $(top_srcdir)/config/zfs-meta.m4 $(top_srcdir)/configure.ac
119am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
120 $(ACLOCAL_M4)
121am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
122 configure.lineno config.status.lineno
123mkinstalldirs = $(install_sh) -d
124CONFIG_HEADER = zfs_config.h
125CONFIG_CLEAN_FILES = module/Makefile module/avl/Makefile \
126 module/nvpair/Makefile module/unicode/Makefile \
127 module/zcommon/Makefile module/zfs/Makefile \
6ba3b446
PS
128 module/zpios/Makefile zfs.spec zfs-modules.spec PKGBUILD-zfs \
129 PKGBUILD-zfs-modules zfs-script-config.sh
e70e591c
BB
130CONFIG_CLEAN_VPATH_FILES =
131AM_V_GEN = $(am__v_GEN_$(V))
132am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
133am__v_GEN_0 = @echo " GEN " $@;
134AM_V_at = $(am__v_at_$(V))
135am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
136am__v_at_0 = @
137SOURCES =
138DIST_SOURCES =
139RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
140 html-recursive info-recursive install-data-recursive \
141 install-dvi-recursive install-exec-recursive \
142 install-html-recursive install-info-recursive \
143 install-pdf-recursive install-ps-recursive install-recursive \
144 installcheck-recursive installdirs-recursive pdf-recursive \
145 ps-recursive uninstall-recursive
146HEADERS = $(noinst_HEADERS)
147RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
148 distclean-recursive maintainer-clean-recursive
149AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
150 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
151 distdir dist dist-all distcheck
152ETAGS = etags
153CTAGS = ctags
de0a1c09 154DIST_SUBDIRS = dracut udev etc man scripts lib cmd module include
e70e591c
BB
155DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
156distdir = $(PACKAGE)-$(VERSION)
157top_distdir = $(distdir)
158am__remove_distdir = \
159 { test ! -d "$(distdir)" \
160 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
161 && rm -fr "$(distdir)"; }; }
162am__relativize = \
163 dir0=`pwd`; \
164 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
165 sed_rest='s,^[^/]*/*,,'; \
166 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
167 sed_butlast='s,/*[^/]*$$,,'; \
168 while test -n "$$dir1"; do \
169 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
170 if test "$$first" != "."; then \
171 if test "$$first" = ".."; then \
172 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
173 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
174 else \
175 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
176 if test "$$first2" = "$$first"; then \
177 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
178 else \
179 dir2="../$$dir2"; \
180 fi; \
181 dir0="$$dir0"/"$$first"; \
182 fi; \
183 fi; \
184 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
185 done; \
186 reldir="$$dir2"
8160dd9a 187DIST_ARCHIVES = $(distdir).tar.gz
e70e591c
BB
188GZIP_ENV = --best
189distuninstallcheck_listfiles = find . -type f -print
190distcleancheck_listfiles = find . -type f -print
191ACLOCAL = @ACLOCAL@
192ALIEN = @ALIEN@
193ALIEN_VERSION = @ALIEN_VERSION@
194AMTAR = @AMTAR@
195AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
196AR = @AR@
197AUTOCONF = @AUTOCONF@
198AUTOHEADER = @AUTOHEADER@
199AUTOMAKE = @AUTOMAKE@
200AWK = @AWK@
e70e591c
BB
201CC = @CC@
202CCAS = @CCAS@
203CCASDEPMODE = @CCASDEPMODE@
204CCASFLAGS = @CCASFLAGS@
205CCDEPMODE = @CCDEPMODE@
206CFLAGS = @CFLAGS@
e70e591c
BB
207CPP = @CPP@
208CPPFLAGS = @CPPFLAGS@
209CYGPATH_W = @CYGPATH_W@
210DEBUG_CFLAGS = @DEBUG_CFLAGS@
211DEBUG_STACKFLAGS = @DEBUG_STACKFLAGS@
4b787d75 212DEBUG_ZFS = @DEBUG_ZFS@
615ab66d 213DEFAULT_INIT_DIR = @DEFAULT_INIT_DIR@
01c0e61d 214DEFAULT_INIT_SCRIPT = @DEFAULT_INIT_SCRIPT@
e70e591c
BB
215DEFAULT_PACKAGE = @DEFAULT_PACKAGE@
216DEFS = @DEFS@
217DEPDIR = @DEPDIR@
218DPKG = @DPKG@
219DPKGBUILD = @DPKGBUILD@
220DPKGBUILD_VERSION = @DPKGBUILD_VERSION@
221DPKG_VERSION = @DPKG_VERSION@
222DSYMUTIL = @DSYMUTIL@
223DUMPBIN = @DUMPBIN@
224ECHO_C = @ECHO_C@
225ECHO_N = @ECHO_N@
226ECHO_T = @ECHO_T@
227EGREP = @EGREP@
228EXEEXT = @EXEEXT@
229FGREP = @FGREP@
230FRAME_LARGER_THAN = @FRAME_LARGER_THAN@
231GREP = @GREP@
232HAVE_ALIEN = @HAVE_ALIEN@
233HAVE_DPKG = @HAVE_DPKG@
234HAVE_DPKGBUILD = @HAVE_DPKGBUILD@
6ba3b446
PS
235HAVE_MAKEPKG = @HAVE_MAKEPKG@
236HAVE_PACMAN = @HAVE_PACMAN@
e70e591c
BB
237HAVE_RPM = @HAVE_RPM@
238HAVE_RPMBUILD = @HAVE_RPMBUILD@
239INSTALL = @INSTALL@
240INSTALL_DATA = @INSTALL_DATA@
241INSTALL_PROGRAM = @INSTALL_PROGRAM@
242INSTALL_SCRIPT = @INSTALL_SCRIPT@
243INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
244KERNELCPPFLAGS = @KERNELCPPFLAGS@
245KERNELMAKE_PARAMS = @KERNELMAKE_PARAMS@
246LD = @LD@
247LDFLAGS = @LDFLAGS@
248LIBBLKID = @LIBBLKID@
e70e591c
BB
249LIBOBJS = @LIBOBJS@
250LIBS = @LIBS@
b3259b6a 251LIBSELINUX = @LIBSELINUX@
e70e591c
BB
252LIBTOOL = @LIBTOOL@
253LIBUUID = @LIBUUID@
254LINUX = @LINUX@
255LINUX_OBJ = @LINUX_OBJ@
256LINUX_SYMBOLS = @LINUX_SYMBOLS@
257LINUX_VERSION = @LINUX_VERSION@
258LIPO = @LIPO@
259LN_S = @LN_S@
260LTLIBOBJS = @LTLIBOBJS@
261MAINT = @MAINT@
262MAKEINFO = @MAKEINFO@
6ba3b446
PS
263MAKEPKG = @MAKEPKG@
264MAKEPKG_VERSION = @MAKEPKG_VERSION@
e70e591c 265MKDIR_P = @MKDIR_P@
e70e591c
BB
266NM = @NM@
267NMEDIT = @NMEDIT@
8a7e1cee 268NO_UNUSED_BUT_SET_VARIABLE = @NO_UNUSED_BUT_SET_VARIABLE@
e70e591c
BB
269OBJDUMP = @OBJDUMP@
270OBJEXT = @OBJEXT@
271OTOOL = @OTOOL@
272OTOOL64 = @OTOOL64@
273PACKAGE = @PACKAGE@
274PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
275PACKAGE_NAME = @PACKAGE_NAME@
276PACKAGE_STRING = @PACKAGE_STRING@
277PACKAGE_TARNAME = @PACKAGE_TARNAME@
278PACKAGE_VERSION = @PACKAGE_VERSION@
6ba3b446
PS
279PACMAN = @PACMAN@
280PACMAN_VERSION = @PACMAN_VERSION@
e70e591c
BB
281PATH_SEPARATOR = @PATH_SEPARATOR@
282RANLIB = @RANLIB@
283RPM = @RPM@
284RPMBUILD = @RPMBUILD@
285RPMBUILD_VERSION = @RPMBUILD_VERSION@
286RPM_VERSION = @RPM_VERSION@
e70e591c
BB
287SED = @SED@
288SET_MAKE = @SET_MAKE@
289SHELL = @SHELL@
290SPL = @SPL@
291SPL_OBJ = @SPL_OBJ@
292SPL_SYMBOLS = @SPL_SYMBOLS@
293SPL_VERSION = @SPL_VERSION@
294STRIP = @STRIP@
295TARGET_ASM_DIR = @TARGET_ASM_DIR@
e70e591c
BB
296VENDOR = @VENDOR@
297VERSION = @VERSION@
298ZFS_CONFIG = @ZFS_CONFIG@
299ZFS_META_ALIAS = @ZFS_META_ALIAS@
300ZFS_META_AUTHOR = @ZFS_META_AUTHOR@
301ZFS_META_DATA = @ZFS_META_DATA@
302ZFS_META_LICENSE = @ZFS_META_LICENSE@
303ZFS_META_LT_AGE = @ZFS_META_LT_AGE@
304ZFS_META_LT_CURRENT = @ZFS_META_LT_CURRENT@
305ZFS_META_LT_REVISION = @ZFS_META_LT_REVISION@
306ZFS_META_NAME = @ZFS_META_NAME@
307ZFS_META_RELEASE = @ZFS_META_RELEASE@
308ZFS_META_VERSION = @ZFS_META_VERSION@
309ZLIB = @ZLIB@
310abs_builddir = @abs_builddir@
311abs_srcdir = @abs_srcdir@
312abs_top_builddir = @abs_top_builddir@
313abs_top_srcdir = @abs_top_srcdir@
314ac_ct_CC = @ac_ct_CC@
315ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
316am__include = @am__include@
317am__leading_dot = @am__leading_dot@
318am__quote = @am__quote@
319am__tar = @am__tar@
320am__untar = @am__untar@
321bindir = @bindir@
322build = @build@
323build_alias = @build_alias@
324build_cpu = @build_cpu@
325build_os = @build_os@
326build_vendor = @build_vendor@
327builddir = @builddir@
328datadir = @datadir@
329datarootdir = @datarootdir@
330docdir = @docdir@
331dvidir = @dvidir@
332exec_prefix = @exec_prefix@
333host = @host@
334host_alias = @host_alias@
335host_cpu = @host_cpu@
336host_os = @host_os@
337host_vendor = @host_vendor@
338htmldir = @htmldir@
339includedir = @includedir@
340infodir = @infodir@
341install_sh = @install_sh@
342libdir = @libdir@
343libexecdir = @libexecdir@
344localedir = @localedir@
345localstatedir = @localstatedir@
346lt_ECHO = @lt_ECHO@
347mandir = @mandir@
348mkdir_p = @mkdir_p@
349oldincludedir = @oldincludedir@
350pdfdir = @pdfdir@
351prefix = @prefix@
352program_transform_name = @program_transform_name@
353psdir = @psdir@
354sbindir = @sbindir@
355sharedstatedir = @sharedstatedir@
356srcdir = @srcdir@
357sysconfdir = @sysconfdir@
358target = @target@
359target_alias = @target_alias@
360target_cpu = @target_cpu@
361target_os = @target_os@
362target_vendor = @target_vendor@
363top_build_prefix = @top_build_prefix@
364top_builddir = @top_builddir@
365top_srcdir = @top_srcdir@
de0a1c09
BB
366udevdir = @udevdir@
367udevruledir = @udevruledir@
368@CONFIG_USER_TRUE@USER_DIR = dracut udev etc man scripts lib cmd
e70e591c 369@CONFIG_KERNEL_TRUE@KERNEL_DIR = module
6283f55e 370SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include
8160dd9a 371AUTOMAKE_OPTIONS = foreign
e70e591c
BB
372EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in \
373 config/config.awk config/rpm.am config/deb.am config/tgz.am \
1ae93745
BB
374 META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE \
375 ZFS.RELEASE
e70e591c
BB
376noinst_HEADERS = zfs_config.h
377all: zfs_config.h
378 $(MAKE) $(AM_MAKEFLAGS) all-recursive
379
380.SUFFIXES:
381am--refresh:
382 @:
6ba3b446 383$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/rpm.am $(top_srcdir)/config/deb.am $(top_srcdir)/config/tgz.am $(top_srcdir)/config/arch.am $(am__configure_deps)
e70e591c
BB
384 @for dep in $?; do \
385 case '$(am__configure_deps)' in \
386 *$$dep*) \
387 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
388 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
389 && exit 0; \
390 exit 1;; \
391 esac; \
392 done; \
393 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
394 $(am__cd) $(top_srcdir) && \
395 $(AUTOMAKE) --foreign Makefile
396.PRECIOUS: Makefile
397Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
398 @case '$?' in \
399 *config.status*) \
400 echo ' $(SHELL) ./config.status'; \
401 $(SHELL) ./config.status;; \
402 *) \
403 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
404 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
405 esac;
406
407$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
408 $(SHELL) ./config.status --recheck
409
410$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
411 $(am__cd) $(srcdir) && $(AUTOCONF)
412$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
413 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
414$(am__aclocal_m4_deps):
415
416zfs_config.h: stamp-h1
417 @if test ! -f $@; then \
418 rm -f stamp-h1; \
419 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
420 else :; fi
421
422stamp-h1: $(srcdir)/zfs_config.h.in $(top_builddir)/config.status
423 @rm -f stamp-h1
424 cd $(top_builddir) && $(SHELL) ./config.status zfs_config.h
425$(srcdir)/zfs_config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
426 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
427 rm -f stamp-h1
428 touch $@
429
430distclean-hdr:
431 -rm -f zfs_config.h stamp-h1
432module/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/Makefile.in
433 cd $(top_builddir) && $(SHELL) ./config.status $@
434module/avl/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/avl/Makefile.in
435 cd $(top_builddir) && $(SHELL) ./config.status $@
436module/nvpair/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/nvpair/Makefile.in
437 cd $(top_builddir) && $(SHELL) ./config.status $@
438module/unicode/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/unicode/Makefile.in
439 cd $(top_builddir) && $(SHELL) ./config.status $@
440module/zcommon/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/zcommon/Makefile.in
441 cd $(top_builddir) && $(SHELL) ./config.status $@
442module/zfs/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/zfs/Makefile.in
443 cd $(top_builddir) && $(SHELL) ./config.status $@
444module/zpios/Makefile: $(top_builddir)/config.status $(top_srcdir)/module/zpios/Makefile.in
445 cd $(top_builddir) && $(SHELL) ./config.status $@
446zfs.spec: $(top_builddir)/config.status $(srcdir)/zfs.spec.in
447 cd $(top_builddir) && $(SHELL) ./config.status $@
448zfs-modules.spec: $(top_builddir)/config.status $(srcdir)/zfs-modules.spec.in
449 cd $(top_builddir) && $(SHELL) ./config.status $@
6ba3b446
PS
450PKGBUILD-zfs: $(top_builddir)/config.status $(srcdir)/PKGBUILD-zfs.in
451 cd $(top_builddir) && $(SHELL) ./config.status $@
452PKGBUILD-zfs-modules: $(top_builddir)/config.status $(srcdir)/PKGBUILD-zfs-modules.in
453 cd $(top_builddir) && $(SHELL) ./config.status $@
6283f55e
BB
454zfs-script-config.sh: $(top_builddir)/config.status $(srcdir)/zfs-script-config.sh.in
455 cd $(top_builddir) && $(SHELL) ./config.status $@
e70e591c
BB
456
457mostlyclean-libtool:
458 -rm -f *.lo
459
460clean-libtool:
461 -rm -rf .libs _libs
462
463distclean-libtool:
464 -rm -f libtool config.lt
465
466# This directory's subdirectories are mostly independent; you can cd
467# into them and run `make' without going through this Makefile.
468# To change the values of `make' variables: instead of editing Makefiles,
469# (1) if the variable is set in `config.status', edit `config.status'
470# (which will cause the Makefiles to be regenerated when you run `make');
471# (2) otherwise, pass the desired values on the `make' command line.
472$(RECURSIVE_TARGETS):
473 @fail= failcom='exit 1'; \
474 for f in x $$MAKEFLAGS; do \
475 case $$f in \
476 *=* | --[!k]*);; \
477 *k*) failcom='fail=yes';; \
478 esac; \
479 done; \
480 dot_seen=no; \
481 target=`echo $@ | sed s/-recursive//`; \
482 list='$(SUBDIRS)'; for subdir in $$list; do \
483 echo "Making $$target in $$subdir"; \
484 if test "$$subdir" = "."; then \
485 dot_seen=yes; \
486 local_target="$$target-am"; \
487 else \
488 local_target="$$target"; \
489 fi; \
490 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
491 || eval $$failcom; \
492 done; \
493 if test "$$dot_seen" = "no"; then \
494 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
495 fi; test -z "$$fail"
496
497$(RECURSIVE_CLEAN_TARGETS):
498 @fail= failcom='exit 1'; \
499 for f in x $$MAKEFLAGS; do \
500 case $$f in \
501 *=* | --[!k]*);; \
502 *k*) failcom='fail=yes';; \
503 esac; \
504 done; \
505 dot_seen=no; \
506 case "$@" in \
507 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
508 *) list='$(SUBDIRS)' ;; \
509 esac; \
510 rev=''; for subdir in $$list; do \
511 if test "$$subdir" = "."; then :; else \
512 rev="$$subdir $$rev"; \
513 fi; \
514 done; \
515 rev="$$rev ."; \
516 target=`echo $@ | sed s/-recursive//`; \
517 for subdir in $$rev; do \
518 echo "Making $$target in $$subdir"; \
519 if test "$$subdir" = "."; then \
520 local_target="$$target-am"; \
521 else \
522 local_target="$$target"; \
523 fi; \
524 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
525 || eval $$failcom; \
526 done && test -z "$$fail"
527tags-recursive:
528 list='$(SUBDIRS)'; for subdir in $$list; do \
529 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
530 done
531ctags-recursive:
532 list='$(SUBDIRS)'; for subdir in $$list; do \
533 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
534 done
535
536ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
537 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
538 unique=`for i in $$list; do \
539 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
540 done | \
541 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
542 END { if (nonempty) { for (i in files) print i; }; }'`; \
543 mkid -fID $$unique
544
545TAGS: tags-recursive $(HEADERS) $(SOURCES) zfs_config.h.in $(TAGS_DEPENDENCIES) \
546 $(TAGS_FILES) $(LISP)
547 set x; \
548 here=`pwd`; \
549 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
550 include_option=--etags-include; \
551 empty_fix=.; \
552 else \
553 include_option=--include; \
554 empty_fix=; \
555 fi; \
556 list='$(SUBDIRS)'; for subdir in $$list; do \
557 if test "$$subdir" = .; then :; else \
558 test ! -f $$subdir/TAGS || \
559 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
560 fi; \
561 done; \
562 list='$(SOURCES) $(HEADERS) zfs_config.h.in $(LISP) $(TAGS_FILES)'; \
563 unique=`for i in $$list; do \
564 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
565 done | \
566 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
567 END { if (nonempty) { for (i in files) print i; }; }'`; \
568 shift; \
569 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
570 test -n "$$unique" || unique=$$empty_fix; \
571 if test $$# -gt 0; then \
572 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
573 "$$@" $$unique; \
574 else \
575 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
576 $$unique; \
577 fi; \
578 fi
579CTAGS: ctags-recursive $(HEADERS) $(SOURCES) zfs_config.h.in $(TAGS_DEPENDENCIES) \
580 $(TAGS_FILES) $(LISP)
581 list='$(SOURCES) $(HEADERS) zfs_config.h.in $(LISP) $(TAGS_FILES)'; \
582 unique=`for i in $$list; do \
583 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
584 done | \
585 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
586 END { if (nonempty) { for (i in files) print i; }; }'`; \
587 test -z "$(CTAGS_ARGS)$$unique" \
588 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
589 $$unique
590
591GTAGS:
592 here=`$(am__cd) $(top_builddir) && pwd` \
593 && $(am__cd) $(top_srcdir) \
594 && gtags -i $(GTAGS_ARGS) "$$here"
595
596distclean-tags:
597 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
598
599distdir: $(DISTFILES)
600 $(am__remove_distdir)
601 test -d "$(distdir)" || mkdir "$(distdir)"
602 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
603 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
604 list='$(DISTFILES)'; \
605 dist_files=`for file in $$list; do echo $$file; done | \
606 sed -e "s|^$$srcdirstrip/||;t" \
607 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
608 case $$dist_files in \
609 */*) $(MKDIR_P) `echo "$$dist_files" | \
610 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
611 sort -u` ;; \
612 esac; \
613 for file in $$dist_files; do \
614 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
615 if test -d $$d/$$file; then \
616 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
617 if test -d "$(distdir)/$$file"; then \
618 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
619 fi; \
620 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
621 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
625 else \
626 test -f "$(distdir)/$$file" \
627 || cp -p $$d/$$file "$(distdir)/$$file" \
628 || exit 1; \
629 fi; \
630 done
631 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
632 if test "$$subdir" = .; then :; else \
633 test -d "$(distdir)/$$subdir" \
634 || $(MKDIR_P) "$(distdir)/$$subdir" \
635 || exit 1; \
636 fi; \
637 done
638 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
639 if test "$$subdir" = .; then :; else \
640 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
641 $(am__relativize); \
642 new_distdir=$$reldir; \
643 dir1=$$subdir; dir2="$(top_distdir)"; \
644 $(am__relativize); \
645 new_top_distdir=$$reldir; \
646 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
647 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
648 ($(am__cd) $$subdir && \
649 $(MAKE) $(AM_MAKEFLAGS) \
650 top_distdir="$$new_top_distdir" \
651 distdir="$$new_distdir" \
652 am__remove_distdir=: \
653 am__skip_length_check=: \
654 am__skip_mode_fix=: \
655 distdir) \
656 || exit 1; \
657 fi; \
658 done
659 -test -n "$(am__skip_mode_fix)" \
660 || find "$(distdir)" -type d ! -perm -755 \
661 -exec chmod u+rwx,go+rx {} \; -o \
662 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
663 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
664 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
665 || chmod -R a+r "$(distdir)"
666dist-gzip: distdir
667 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
668 $(am__remove_distdir)
669
670dist-bzip2: distdir
671 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
672 $(am__remove_distdir)
673
674dist-lzma: distdir
675 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
676 $(am__remove_distdir)
677
678dist-xz: distdir
679 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
680 $(am__remove_distdir)
681
682dist-tarZ: distdir
683 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
684 $(am__remove_distdir)
685
686dist-shar: distdir
687 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
688 $(am__remove_distdir)
8160dd9a 689
e70e591c
BB
690dist-zip: distdir
691 -rm -f $(distdir).zip
692 zip -rq $(distdir).zip $(distdir)
693 $(am__remove_distdir)
694
695dist dist-all: distdir
696 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
e70e591c
BB
697 $(am__remove_distdir)
698
699# This target untars the dist file and tries a VPATH configuration. Then
700# it guarantees that the distribution is self-contained by making another
701# tarfile.
702distcheck: dist
703 case '$(DIST_ARCHIVES)' in \
704 *.tar.gz*) \
705 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
706 *.tar.bz2*) \
707 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
708 *.tar.lzma*) \
709 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
710 *.tar.xz*) \
711 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
712 *.tar.Z*) \
713 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
714 *.shar.gz*) \
715 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
716 *.zip*) \
717 unzip $(distdir).zip ;;\
718 esac
719 chmod -R a-w $(distdir); chmod a+w $(distdir)
720 mkdir $(distdir)/_build
721 mkdir $(distdir)/_inst
722 chmod a-w $(distdir)
723 test -d $(distdir)/_build || exit 0; \
724 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
725 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
726 && am__cwd=`pwd` \
727 && $(am__cd) $(distdir)/_build \
728 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
729 $(DISTCHECK_CONFIGURE_FLAGS) \
730 && $(MAKE) $(AM_MAKEFLAGS) \
731 && $(MAKE) $(AM_MAKEFLAGS) dvi \
732 && $(MAKE) $(AM_MAKEFLAGS) check \
733 && $(MAKE) $(AM_MAKEFLAGS) install \
734 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
735 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
736 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
737 distuninstallcheck \
738 && chmod -R a-w "$$dc_install_base" \
739 && ({ \
740 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
741 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
742 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
743 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
744 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
745 } || { rm -rf "$$dc_destdir"; exit 1; }) \
746 && rm -rf "$$dc_destdir" \
747 && $(MAKE) $(AM_MAKEFLAGS) dist \
748 && rm -rf $(DIST_ARCHIVES) \
749 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
750 && cd "$$am__cwd" \
751 || exit 1
752 $(am__remove_distdir)
753 @(echo "$(distdir) archives ready for distribution: "; \
754 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
755 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
756distuninstallcheck:
757 @$(am__cd) '$(distuninstallcheck_dir)' \
758 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
759 || { echo "ERROR: files left after uninstall:" ; \
760 if test -n "$(DESTDIR)"; then \
761 echo " (check DESTDIR support)"; \
762 fi ; \
763 $(distuninstallcheck_listfiles) ; \
764 exit 1; } >&2
765distcleancheck: distclean
766 @if test '$(srcdir)' = . ; then \
767 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
768 exit 1 ; \
769 fi
770 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
771 || { echo "ERROR: files left in build directory after distclean:" ; \
772 $(distcleancheck_listfiles) ; \
773 exit 1; } >&2
774check-am: all-am
775check: check-recursive
776all-am: Makefile $(HEADERS) zfs_config.h
777installdirs: installdirs-recursive
778installdirs-am:
779install: install-recursive
780install-exec: install-exec-recursive
781install-data: install-data-recursive
782uninstall: uninstall-recursive
783
784install-am: all-am
785 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
786
787installcheck: installcheck-recursive
788install-strip:
789 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
790 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
791 `test -z '$(STRIP)' || \
792 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
793mostlyclean-generic:
794
795clean-generic:
796
797distclean-generic:
798 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
799 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
800
801maintainer-clean-generic:
802 @echo "This command is intended for maintainers to use"
803 @echo "it deletes files that may require special tools to rebuild."
804@CONFIG_KERNEL_FALSE@install-data-local:
805clean: clean-recursive
806
807clean-am: clean-generic clean-libtool mostlyclean-am
808
809distclean: distclean-recursive
810 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
811 -rm -f Makefile
812distclean-am: clean-am distclean-generic distclean-hdr \
813 distclean-libtool distclean-local distclean-tags
814
815dvi: dvi-recursive
816
817dvi-am:
818
819html: html-recursive
820
821html-am:
822
823info: info-recursive
824
825info-am:
826
827install-data-am: install-data-local
828
829install-dvi: install-dvi-recursive
830
831install-dvi-am:
832
833install-exec-am:
834
835install-html: install-html-recursive
836
837install-html-am:
838
839install-info: install-info-recursive
840
841install-info-am:
842
843install-man:
844
845install-pdf: install-pdf-recursive
846
847install-pdf-am:
848
849install-ps: install-ps-recursive
850
851install-ps-am:
852
853installcheck-am:
854
855maintainer-clean: maintainer-clean-recursive
856 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
857 -rm -rf $(top_srcdir)/autom4te.cache
858 -rm -f Makefile
859maintainer-clean-am: distclean-am maintainer-clean-generic
860
861mostlyclean: mostlyclean-recursive
862
863mostlyclean-am: mostlyclean-generic mostlyclean-libtool
864
865pdf: pdf-recursive
866
867pdf-am:
868
869ps: ps-recursive
870
871ps-am:
872
873uninstall-am:
874
875.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
876 ctags-recursive install-am install-strip tags-recursive
877
878.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
879 all all-am am--refresh check check-am clean clean-generic \
880 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
881 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
882 distcheck distclean distclean-generic distclean-hdr \
883 distclean-libtool distclean-local distclean-tags \
884 distcleancheck distdir distuninstallcheck dvi dvi-am html \
885 html-am info info-am install install-am install-data \
886 install-data-am install-data-local install-dvi install-dvi-am \
887 install-exec install-exec-am install-html install-html-am \
888 install-info install-info-am install-man install-pdf \
889 install-pdf-am install-ps install-ps-am install-strip \
890 installcheck installcheck-am installdirs installdirs-am \
891 maintainer-clean maintainer-clean-generic mostlyclean \
892 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
893 tags tags-recursive uninstall uninstall-am
894
895srpm-modules:
896 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
897
898srpm-utils:
899 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
900
901srpm: srpm-modules srpm-utils
902
903rpm-modules: srpm-modules
904 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
905
906rpm-utils: srpm-utils
907 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
908
909rpm-modules: srpm-modules
910
911rpm: rpm-modules rpm-utils
912
913rpm-local:
914 @(if test "${HAVE_RPMBUILD}" = "no"; then \
915 echo -e "\n" \
916 "*** Required util ${RPMBUILD} missing. Please install the\n" \
917 "*** package for your distribution which provides ${RPMBUILD},\n" \
918 "*** re-run configure, and try again.\n"; \
919 exit 1; \
920 fi; \
921 mkdir -p $(rpmbuild)/TMP && \
922 mkdir -p $(rpmbuild)/BUILD && \
923 mkdir -p $(rpmbuild)/RPMS && \
924 mkdir -p $(rpmbuild)/SRPMS && \
925 mkdir -p $(rpmbuild)/SPECS && \
926 cp $(rpmspec) $(rpmbuild)/SPECS && \
927 mkdir -p $(rpmbuild)/SOURCES && \
928 cp $(distdir).tar.gz $(rpmbuild)/SOURCES)
929
930srpm-common: dist
931 rpmpkg=$(pkg)-$(ZFS_META_VERSION)-$(ZFS_META_RELEASE).src.rpm; \
932 rpmspec=$(pkg).spec; \
933 rpmbuild=`mktemp -t -d $(PACKAGE)-build-$$USER-XXXXXXXX`; \
934 $(MAKE) $(AM_MAKEFLAGS) \
935 rpmbuild="$$rpmbuild" \
936 rpmspec="$$rpmspec" \
937 rpm-local || exit 1; \
938 $(RPMBUILD) \
939 --define "_tmppath $$rpmbuild/TMP" \
940 --define "_topdir $$rpmbuild" \
941 --define "build_src_rpm 1" \
942 --define "dist %{nil}" \
943 --nodeps -bs $$rpmbuild/SPECS/$$rpmspec || exit 1; \
944 cp $$rpmbuild/SRPMS/$$rpmpkg . || exit 1; \
945 $(RM) -R $$rpmbuild
946
947rpm-common:
948 rpmpkg=$(pkg)-$(ZFS_META_VERSION)-$(ZFS_META_RELEASE).src.rpm; \
949 rpmspec=$(pkg).spec; \
950 rpmbuild=`mktemp -t -d $(PACKAGE)-build-$$USER-XXXXXXXX`; \
951 $(MAKE) $(AM_MAKEFLAGS) \
952 rpmbuild="$$rpmbuild" \
953 rpmspec="$$rpmspec" \
954 rpm-local || exit 1; \
955 $(RPMBUILD) \
956 --define "_tmppath $$rpmbuild/TMP" \
957 --define "_topdir $$rpmbuild" \
958 --define "dist %{nil}" \
959 --define "require_kdir $(LINUX)" \
960 --define "require_kobj $(LINUX_OBJ)" \
961 --define "require_kver $(LINUX_VERSION)" \
962 --define "require_spldir $(SPL)" \
963 --define "require_splobj $(SPL_OBJ)" \
964 --define "require_splver $(SPL_VERSION)" \
4b787d75 965 --define "$(DEBUG_ZFS) 1" \
e70e591c
BB
966 --nodeps --rebuild $$rpmpkg || exit 1; \
967 cp $$rpmbuild/RPMS/*/* . || exit 1; \
968 $(RM) -R $$rpmbuild
6283f55e
BB
969deb-local:
970 @(if test "${HAVE_DPKGBUILD}" = "no"; then \
971 echo -e "\n" \
972 "*** Required util ${DPKGBUILD} missing. Please install the\n" \
973 "*** package for your distribution which provides ${DPKGBUILD},\n" \
974 "*** re-run configure, and try again.\n"; \
975 exit 1; \
976 fi; \
977 if test "${HAVE_ALIEN}" = "no"; then \
978 echo -e "\n" \
979 "*** Required util ${ALIEN} missing. Please install the\n" \
980 "*** package for your distribution which provides ${ALIEN},\n" \
981 "*** re-run configure, and try again.\n"; \
982 exit 1; \
983 fi)
984
985deb-modules: deb-local rpm-modules
986 name=${PACKAGE}-modules; \
987 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
988 release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
bd2f5ac9 989 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
6283f55e
BB
990 pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
991 pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
992 fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2; \
993 $(RM) $$pkg1 $$pkg2
994
995deb-utils: deb-local rpm-utils
996 name=${PACKAGE}; \
997 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
bd2f5ac9 998 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
6283f55e
BB
999 pkg1=$${name}-$${version}.$${arch}.rpm; \
1000 pkg2=$${name}-devel-$${version}.$${arch}.rpm; \
1001 pkg3=$${name}-test-$${version}.$${arch}.rpm; \
ae26d046
MAR
1002 pkg4=$${name}-dracut-$${version}.$${arch}.rpm; \
1003 fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2 $$pkg3 $$pkg4; \
1004 $(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4
6283f55e
BB
1005
1006deb: deb-modules deb-utils
1007tgz-local:
1008 @(if test "${HAVE_ALIEN}" = "no"; then \
1009 echo -e "\n" \
1010 "*** Required util ${ALIEN} missing. Please install the\n" \
1011 "*** package for your distribution which provides ${ALIEN},\n" \
1012 "*** re-run configure, and try again.\n"; \
1013 exit 1; \
1014 fi)
1015
1016tgz-modules: tgz-local rpm-modules
1017 name=${PACKAGE}-modules; \
1018 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
1019 release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
bd2f5ac9 1020 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
6283f55e
BB
1021 pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
1022 pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
1023 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
1024 $(RM) $$pkg1 $$pkg2
1025
1026tgz-utils: tgz-local rpm-utils
1027 name=${PACKAGE}; \
1028 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
bd2f5ac9 1029 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
6283f55e
BB
1030 pkg1=$${name}-$${version}.$${arch}.rpm; \
1031 pkg2=$${name}-devel-$${version}.$${arch}.rpm; \
1032 pkg3=$${name}-test-$${version}.$${arch}.rpm; \
1033 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
1034 $(RM) $$pkg1 $$pkg2 $$pkg3
1035
1036tgz: tgz-modules tgz-utils
e70e591c 1037
6ba3b446
PS
1038sarch-modules:
1039 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" sarch-common
1040
1041sarch-utils:
1042 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" sarch-common
1043
1044sarch: sarch-modules sarch-utils
1045
1046arch-modules:
1047 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" arch-common
1048
1049arch-utils:
1050 $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" arch-common
1051
1052arch: arch-modules arch-utils
1053
1054arch-local:
1055 @(if test "${HAVE_MAKEPKG}" = "no"; then \
1056 echo -e "\n" \
1057 "*** Required util ${MAKEPKG} missing. Please install the\n" \
1058 "*** package for your distribution which provides ${MAKEPKG},\n" \
1059 "*** re-run configure, and try again.\n"; \
1060 exit 1; \
1061 fi;)
1062
1063sarch-common: dist
1064 pkgbuild=PKGBUILD-$(pkg); \
1065 $(MAKE) $(AM_MAKEFLAGS) arch-local || exit 1; \
1066 $(MAKEPKG) --allsource --skipinteg --nodeps -p $$pkgbuild || exit 1;
1067
1068arch-common: dist
1069 pkgbuild=PKGBUILD-$(pkg); \
1070 $(MAKE) $(AM_MAKEFLAGS) arch-local || exit 1; \
1071 $(MAKEPKG) --skipinteg -p $$pkgbuild || exit 1;
1072
e70e591c
BB
1073distclean-local::
1074 -$(RM) -R autom4te*.cache
1075 -find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
1076 -o -name .pc -o -name .hg -o -name .git \) -prune -o \
1077 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
1078 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
1ae93745 1079 -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
e70e591c
BB
1080 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
1081 -o -name 'Makefile' -o -name 'Module.symvers' \
1ae93745 1082 -o -name '*.order' -o -name '*.markers' \) \
e70e591c
BB
1083 -type f -print | xargs $(RM)
1084
1085@CONFIG_KERNEL_TRUE@install-data-local:
b40a77ae
BB
1086@CONFIG_KERNEL_TRUE@ release=$(ZFS_META_VERSION)-$(ZFS_META_RELEASE); \
1087@CONFIG_KERNEL_TRUE@ instdest=$(DESTDIR)/usr/src/zfs-$$release/$(LINUX_VERSION); \
1088@CONFIG_KERNEL_TRUE@ echo "$$release" >$$instdest/zfs.release; \
e70e591c
BB
1089@CONFIG_KERNEL_TRUE@ for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
1090@CONFIG_KERNEL_TRUE@ $(INSTALL) -D $$instfile $$instdest/$$instfile; \
1091@CONFIG_KERNEL_TRUE@ done
1092
1093ctags:
1094 $(RM) $(top_srcdir)/tags
1095 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
1096
1097etags:
1098 $(RM) $(top_srcdir)/TAGS
1099 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
1100
1101tags: ctags etags
1102
1103pkg: @DEFAULT_PACKAGE@
1104pkg-modules: @DEFAULT_PACKAGE@-modules
1105pkg-utils: @DEFAULT_PACKAGE@-utils
1106
1107# Tell versions [3.59,3.63) of GNU make to not export all variables.
1108# Otherwise a system limit (for SysV at least) may be exceeded.
1109.NOEXPORT: