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