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