]> 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 \
d801db14
PS
83 $(srcdir)/spl-modules.spec.in $(srcdir)/spl.release.in \
84 $(srcdir)/spl.spec.in $(srcdir)/spl_config.h.in \
85 $(top_srcdir)/config/arch.am $(top_srcdir)/config/deb.am \
86 $(top_srcdir)/config/rpm.am $(top_srcdir)/config/tgz.am \
87 $(top_srcdir)/configure $(top_srcdir)/module/Makefile.in \
617d5a67
BB
88 $(top_srcdir)/module/spl/Makefile.in \
89 $(top_srcdir)/module/splat/Makefile.in AUTHORS COPYING \
bf9f3bac 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 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 101mkinstalldirs = $(install_sh) -d
102CONFIG_HEADER = spl_config.h
c5f70460 103CONFIG_CLEAN_FILES = module/Makefile module/spl/Makefile \
c2dceb5c 104 module/splat/Makefile spl.spec spl-modules.spec PKGBUILD-spl \
d801db14 105 PKGBUILD-spl-modules spl.release
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 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 128ETAGS = etags
129CTAGS = ctags
86933a6e 130DIST_SUBDIRS = lib cmd scripts module include
bf9f3bac 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 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 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 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 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 212INSTALL_DATA = @INSTALL_DATA@
213INSTALL_PROGRAM = @INSTALL_PROGRAM@
214INSTALL_SCRIPT = @INSTALL_SCRIPT@
215INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
bf9f3bac 216KERNELCPPFLAGS = @KERNELCPPFLAGS@
217KERNELMAKE_PARAMS = @KERNELMAKE_PARAMS@
8934764e 218LD = @LD@
bf9f3bac 219LDFLAGS = @LDFLAGS@
220LIBOBJS = @LIBOBJS@
221LIBS = @LIBS@
222LIBTOOL = @LIBTOOL@
86933a6e 223LICENSE = @LICENSE@
bf9f3bac 224LINUX = @LINUX@
225LINUX_OBJ = @LINUX_OBJ@
2e0e7e69 226LINUX_SYMBOLS = @LINUX_SYMBOLS@
c5f70460 227LINUX_VERSION = @LINUX_VERSION@
8934764e 228LIPO = @LIPO@
bf9f3bac 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 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 250PATH_SEPARATOR = @PATH_SEPARATOR@
251RANLIB = @RANLIB@
287b2fb1
BB
252RPM = @RPM@
253RPMBUILD = @RPMBUILD@
254RPMBUILD_VERSION = @RPMBUILD_VERSION@
255RPM_VERSION = @RPM_VERSION@
bf9f3bac 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 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 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 301includedir = @includedir@
302infodir = @infodir@
303install_sh = @install_sh@
bf9f3bac 304libdir = @libdir@
305libexecdir = @libexecdir@
8934764e 306localedir = @localedir@
bf9f3bac 307localstatedir = @localstatedir@
8934764e 308lt_ECHO = @lt_ECHO@
bf9f3bac 309mandir = @mandir@
310mkdir_p = @mkdir_p@
311oldincludedir = @oldincludedir@
8934764e 312pdfdir = @pdfdir@
bf9f3bac 313prefix = @prefix@
314program_transform_name = @program_transform_name@
8934764e 315psdir = @psdir@
bf9f3bac 316sbindir = @sbindir@
317sharedstatedir = @sharedstatedir@
8934764e 318srcdir = @srcdir@
bf9f3bac 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
d801db14 335noinst_HEADERS = spl_config.h spl.release
bf9f3bac 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 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 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 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 374
375spl_config.h: stamp-h1
376 @if test ! -f $@; then \
377 rm -f stamp-h1; \
8934764e 378 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
bf9f3bac 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 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 $@
d801db14
PS
405spl.release: $(top_builddir)/config.status $(srcdir)/spl.release.in
406 cd $(top_builddir) && $(SHELL) ./config.status $@
bf9f3bac 407
408mostlyclean-libtool:
409 -rm -f *.lo
410
411clean-libtool:
412 -rm -rf .libs _libs
413
414distclean-libtool:
8934764e 415 -rm -f libtool config.lt
bf9f3bac 416
417# This directory's subdirectories are mostly independent; you can cd
418# into them and run `make' without going through this Makefile.
419# To change the values of `make' variables: instead of editing Makefiles,
420# (1) if the variable is set in `config.status', edit `config.status'
421# (which will cause the Makefiles to be regenerated when you run `make');
422# (2) otherwise, pass the desired values on the `make' command line.
423$(RECURSIVE_TARGETS):
49638d83 424 @fail= failcom='exit 1'; \
bf9f3bac 425 for f in x $$MAKEFLAGS; do \
426 case $$f in \
427 *=* | --[!k]*);; \
428 *k*) failcom='fail=yes';; \
429 esac; \
430 done; \
431 dot_seen=no; \
432 target=`echo $@ | sed s/-recursive//`; \
433 list='$(SUBDIRS)'; for subdir in $$list; do \
434 echo "Making $$target in $$subdir"; \
435 if test "$$subdir" = "."; then \
436 dot_seen=yes; \
437 local_target="$$target-am"; \
438 else \
439 local_target="$$target"; \
440 fi; \
8934764e 441 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
bf9f3bac 442 || eval $$failcom; \
443 done; \
444 if test "$$dot_seen" = "no"; then \
445 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
446 fi; test -z "$$fail"
447
8934764e 448$(RECURSIVE_CLEAN_TARGETS):
49638d83 449 @fail= failcom='exit 1'; \
bf9f3bac 450 for f in x $$MAKEFLAGS; do \
451 case $$f in \
452 *=* | --[!k]*);; \
453 *k*) failcom='fail=yes';; \
454 esac; \
455 done; \
456 dot_seen=no; \
457 case "$@" in \
458 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
459 *) list='$(SUBDIRS)' ;; \
460 esac; \
461 rev=''; for subdir in $$list; do \
462 if test "$$subdir" = "."; then :; else \
463 rev="$$subdir $$rev"; \
464 fi; \
465 done; \
466 rev="$$rev ."; \
467 target=`echo $@ | sed s/-recursive//`; \
468 for subdir in $$rev; do \
469 echo "Making $$target in $$subdir"; \
470 if test "$$subdir" = "."; then \
471 local_target="$$target-am"; \
472 else \
473 local_target="$$target"; \
474 fi; \
8934764e 475 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
bf9f3bac 476 || eval $$failcom; \
477 done && test -z "$$fail"
478tags-recursive:
479 list='$(SUBDIRS)'; for subdir in $$list; do \
8934764e 480 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
bf9f3bac 481 done
482ctags-recursive:
483 list='$(SUBDIRS)'; for subdir in $$list; do \
8934764e 484 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
bf9f3bac 485 done
486
487ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
488 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
489 unique=`for i in $$list; do \
490 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
491 done | \
8934764e
BB
492 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
493 END { if (nonempty) { for (i in files) print i; }; }'`; \
bf9f3bac 494 mkid -fID $$unique
bf9f3bac 495
496TAGS: tags-recursive $(HEADERS) $(SOURCES) spl_config.h.in $(TAGS_DEPENDENCIES) \
497 $(TAGS_FILES) $(LISP)
8934764e 498 set x; \
bf9f3bac 499 here=`pwd`; \
500 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
501 include_option=--etags-include; \
502 empty_fix=.; \
503 else \
504 include_option=--include; \
505 empty_fix=; \
506 fi; \
507 list='$(SUBDIRS)'; for subdir in $$list; do \
508 if test "$$subdir" = .; then :; else \
509 test ! -f $$subdir/TAGS || \
8934764e 510 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
bf9f3bac 511 fi; \
512 done; \
513 list='$(SOURCES) $(HEADERS) spl_config.h.in $(LISP) $(TAGS_FILES)'; \
514 unique=`for i in $$list; do \
515 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
516 done | \
8934764e
BB
517 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
518 END { if (nonempty) { for (i in files) print i; }; }'`; \
519 shift; \
520 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
bf9f3bac 521 test -n "$$unique" || unique=$$empty_fix; \
8934764e
BB
522 if test $$# -gt 0; then \
523 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
524 "$$@" $$unique; \
525 else \
526 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
527 $$unique; \
528 fi; \
bf9f3bac 529 fi
bf9f3bac 530CTAGS: ctags-recursive $(HEADERS) $(SOURCES) spl_config.h.in $(TAGS_DEPENDENCIES) \
531 $(TAGS_FILES) $(LISP)
bf9f3bac 532 list='$(SOURCES) $(HEADERS) spl_config.h.in $(LISP) $(TAGS_FILES)'; \
533 unique=`for i in $$list; do \
534 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
535 done | \
8934764e
BB
536 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
537 END { if (nonempty) { for (i in files) print i; }; }'`; \
538 test -z "$(CTAGS_ARGS)$$unique" \
bf9f3bac 539 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
8934764e 540 $$unique
bf9f3bac 541
542GTAGS:
543 here=`$(am__cd) $(top_builddir) && pwd` \
8934764e
BB
544 && $(am__cd) $(top_srcdir) \
545 && gtags -i $(GTAGS_ARGS) "$$here"
bf9f3bac 546
547distclean-tags:
548 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
549
550distdir: $(DISTFILES)
551 $(am__remove_distdir)
8934764e
BB
552 test -d "$(distdir)" || mkdir "$(distdir)"
553 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
554 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
555 list='$(DISTFILES)'; \
556 dist_files=`for file in $$list; do echo $$file; done | \
557 sed -e "s|^$$srcdirstrip/||;t" \
558 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
559 case $$dist_files in \
560 */*) $(MKDIR_P) `echo "$$dist_files" | \
561 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
562 sort -u` ;; \
563 esac; \
564 for file in $$dist_files; do \
bf9f3bac 565 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
bf9f3bac 566 if test -d $$d/$$file; then \
8934764e
BB
567 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
568 if test -d "$(distdir)/$$file"; then \
569 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
570 fi; \
bf9f3bac 571 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
8934764e
BB
572 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
573 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
bf9f3bac 574 fi; \
8934764e 575 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
bf9f3bac 576 else \
8934764e
BB
577 test -f "$(distdir)/$$file" \
578 || cp -p $$d/$$file "$(distdir)/$$file" \
bf9f3bac 579 || exit 1; \
580 fi; \
581 done
8934764e 582 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
bf9f3bac 583 if test "$$subdir" = .; then :; else \
584 test -d "$(distdir)/$$subdir" \
8934764e 585 || $(MKDIR_P) "$(distdir)/$$subdir" \
bf9f3bac 586 || exit 1; \
8934764e
BB
587 fi; \
588 done
589 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
590 if test "$$subdir" = .; then :; else \
591 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
592 $(am__relativize); \
593 new_distdir=$$reldir; \
594 dir1=$$subdir; dir2="$(top_distdir)"; \
595 $(am__relativize); \
596 new_top_distdir=$$reldir; \
597 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
598 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
599 ($(am__cd) $$subdir && \
bf9f3bac 600 $(MAKE) $(AM_MAKEFLAGS) \
8934764e
BB
601 top_distdir="$$new_top_distdir" \
602 distdir="$$new_distdir" \
603 am__remove_distdir=: \
604 am__skip_length_check=: \
605 am__skip_mode_fix=: \
bf9f3bac 606 distdir) \
607 || exit 1; \
608 fi; \
609 done
8934764e 610 -test -n "$(am__skip_mode_fix)" \
49638d83
BB
611 || find "$(distdir)" -type d ! -perm -755 \
612 -exec chmod u+rwx,go+rx {} \; -o \
bf9f3bac 613 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
614 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
8934764e
BB
615 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
616 || chmod -R a+r "$(distdir)"
bf9f3bac 617dist-gzip: distdir
618 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
619 $(am__remove_distdir)
620
621dist-bzip2: distdir
622 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
623 $(am__remove_distdir)
624
8934764e
BB
625dist-lzma: distdir
626 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
627 $(am__remove_distdir)
628
629dist-xz: distdir
630 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
631 $(am__remove_distdir)
632
bf9f3bac 633dist-tarZ: distdir
634 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
635 $(am__remove_distdir)
636
637dist-shar: distdir
638 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
639 $(am__remove_distdir)
d8a1b739 640
bf9f3bac 641dist-zip: distdir
642 -rm -f $(distdir).zip
643 zip -rq $(distdir).zip $(distdir)
644 $(am__remove_distdir)
645
646dist dist-all: distdir
647 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
bf9f3bac 648 $(am__remove_distdir)
649
650# This target untars the dist file and tries a VPATH configuration. Then
651# it guarantees that the distribution is self-contained by making another
652# tarfile.
653distcheck: dist
654 case '$(DIST_ARCHIVES)' in \
655 *.tar.gz*) \
49638d83 656 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
bf9f3bac 657 *.tar.bz2*) \
49638d83 658 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
8934764e 659 *.tar.lzma*) \
49638d83 660 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
8934764e
BB
661 *.tar.xz*) \
662 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
bf9f3bac 663 *.tar.Z*) \
664 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
665 *.shar.gz*) \
49638d83 666 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
bf9f3bac 667 *.zip*) \
668 unzip $(distdir).zip ;;\
669 esac
670 chmod -R a-w $(distdir); chmod a+w $(distdir)
671 mkdir $(distdir)/_build
672 mkdir $(distdir)/_inst
673 chmod a-w $(distdir)
8934764e 674 test -d $(distdir)/_build || exit 0; \
bf9f3bac 675 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
676 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
8934764e
BB
677 && am__cwd=`pwd` \
678 && $(am__cd) $(distdir)/_build \
bf9f3bac 679 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
680 $(DISTCHECK_CONFIGURE_FLAGS) \
681 && $(MAKE) $(AM_MAKEFLAGS) \
682 && $(MAKE) $(AM_MAKEFLAGS) dvi \
683 && $(MAKE) $(AM_MAKEFLAGS) check \
684 && $(MAKE) $(AM_MAKEFLAGS) install \
685 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
686 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
687 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
688 distuninstallcheck \
689 && chmod -R a-w "$$dc_install_base" \
690 && ({ \
691 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
692 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
693 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
694 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
695 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
696 } || { rm -rf "$$dc_destdir"; exit 1; }) \
697 && rm -rf "$$dc_destdir" \
698 && $(MAKE) $(AM_MAKEFLAGS) dist \
699 && rm -rf $(DIST_ARCHIVES) \
8934764e
BB
700 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
701 && cd "$$am__cwd" \
702 || exit 1
bf9f3bac 703 $(am__remove_distdir)
704 @(echo "$(distdir) archives ready for distribution: "; \
705 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
8934764e 706 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
bf9f3bac 707distuninstallcheck:
8934764e 708 @$(am__cd) '$(distuninstallcheck_dir)' \
bf9f3bac 709 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
710 || { echo "ERROR: files left after uninstall:" ; \
711 if test -n "$(DESTDIR)"; then \
712 echo " (check DESTDIR support)"; \
713 fi ; \
714 $(distuninstallcheck_listfiles) ; \
715 exit 1; } >&2
716distcleancheck: distclean
717 @if test '$(srcdir)' = . ; then \
718 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
719 exit 1 ; \
720 fi
721 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
722 || { echo "ERROR: files left in build directory after distclean:" ; \
723 $(distcleancheck_listfiles) ; \
724 exit 1; } >&2
725check-am: all-am
726check: check-recursive
c5f70460 727all-am: Makefile $(HEADERS) spl_config.h
bf9f3bac 728installdirs: installdirs-recursive
729installdirs-am:
730install: install-recursive
731install-exec: install-exec-recursive
732install-data: install-data-recursive
733uninstall: uninstall-recursive
734
735install-am: all-am
736 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
737
738installcheck: installcheck-recursive
739install-strip:
740 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
741 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
742 `test -z '$(STRIP)' || \
743 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
744mostlyclean-generic:
745
746clean-generic:
747
748distclean-generic:
749 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
8934764e 750 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
bf9f3bac 751
752maintainer-clean-generic:
753 @echo "This command is intended for maintainers to use"
754 @echo "it deletes files that may require special tools to rebuild."
86933a6e 755@CONFIG_KERNEL_FALSE@install-data-local:
bf9f3bac 756clean: clean-recursive
757
758clean-am: clean-generic clean-libtool mostlyclean-am
759
760distclean: distclean-recursive
761 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
762 -rm -f Makefile
763distclean-am: clean-am distclean-generic distclean-hdr \
c5f70460 764 distclean-libtool distclean-local distclean-tags
bf9f3bac 765
766dvi: dvi-recursive
767
768dvi-am:
769
770html: html-recursive
771
8934764e
BB
772html-am:
773
bf9f3bac 774info: info-recursive
775
776info-am:
777
0c617c9a 778install-data-am: install-data-local
bf9f3bac 779
8934764e
BB
780install-dvi: install-dvi-recursive
781
782install-dvi-am:
783
bf9f3bac 784install-exec-am:
785
8934764e
BB
786install-html: install-html-recursive
787
788install-html-am:
789
bf9f3bac 790install-info: install-info-recursive
791
8934764e
BB
792install-info-am:
793
bf9f3bac 794install-man:
795
8934764e
BB
796install-pdf: install-pdf-recursive
797
798install-pdf-am:
799
800install-ps: install-ps-recursive
801
802install-ps-am:
803
bf9f3bac 804installcheck-am:
805
806maintainer-clean: maintainer-clean-recursive
807 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
808 -rm -rf $(top_srcdir)/autom4te.cache
809 -rm -f Makefile
810maintainer-clean-am: distclean-am maintainer-clean-generic
811
812mostlyclean: mostlyclean-recursive
813
814mostlyclean-am: mostlyclean-generic mostlyclean-libtool
815
816pdf: pdf-recursive
817
818pdf-am:
819
820ps: ps-recursive
821
822ps-am:
823
8934764e 824uninstall-am:
bf9f3bac 825
8934764e
BB
826.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
827 ctags-recursive install-am install-strip tags-recursive
bf9f3bac 828
8934764e
BB
829.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
830 all all-am am--refresh check check-am clean clean-generic \
831 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
832 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
833 distcheck distclean distclean-generic distclean-hdr \
834 distclean-libtool distclean-local distclean-tags \
c5f70460
BB
835 distcleancheck distdir distuninstallcheck dvi dvi-am html \
836 html-am info info-am install install-am install-data \
8934764e
BB
837 install-data-am install-data-local install-dvi install-dvi-am \
838 install-exec install-exec-am install-html install-html-am \
839 install-info install-info-am install-man install-pdf \
840 install-pdf-am install-ps install-ps-am install-strip \
841 installcheck installcheck-am installdirs installdirs-am \
842 maintainer-clean maintainer-clean-generic mostlyclean \
843 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
844 tags tags-recursive uninstall uninstall-am
c5f70460 845
716154c5 846
287b2fb1 847srpm-modules:
016432fb 848@CONFIG_KERNEL_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" srpm-common
287b2fb1
BB
849
850srpm-utils:
016432fb 851@CONFIG_USER_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" srpm-common
287b2fb1
BB
852
853srpm: srpm-modules srpm-utils
854
855rpm-modules: srpm-modules
016432fb 856@CONFIG_KERNEL_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" rpm-common
287b2fb1
BB
857
858rpm-utils: srpm-utils
016432fb 859@CONFIG_USER_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" rpm-common
287b2fb1
BB
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
016432fb
ED
937@CONFIG_KERNEL_TRUE@ name=${PACKAGE}-modules; \
938@CONFIG_KERNEL_TRUE@ version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
939@CONFIG_KERNEL_TRUE@ release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
940@CONFIG_KERNEL_TRUE@ arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
941@CONFIG_KERNEL_TRUE@ pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
942@CONFIG_KERNEL_TRUE@ pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
943@CONFIG_KERNEL_TRUE@ fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2; \
944@CONFIG_KERNEL_TRUE@ $(RM) $$pkg1 $$pkg2
a7958f7e
BB
945
946deb-utils: deb-local rpm-utils
016432fb
ED
947@CONFIG_USER_TRUE@ name=${PACKAGE}; \
948@CONFIG_USER_TRUE@ version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
949@CONFIG_USER_TRUE@ arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
950@CONFIG_USER_TRUE@ pkg1=$${name}-$${version}.$${arch}.rpm; \
951@CONFIG_USER_TRUE@ fakeroot $(ALIEN) --scripts --to-deb $$pkg1; \
952@CONFIG_USER_TRUE@ $(RM) $$pkg1
a7958f7e
BB
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
016432fb
ED
966@CONFIG_KERNEL_TRUE@ name=${PACKAGE}-modules; \
967@CONFIG_KERNEL_TRUE@ version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
968@CONFIG_KERNEL_TRUE@ release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
969@CONFIG_KERNEL_TRUE@ arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
970@CONFIG_KERNEL_TRUE@ pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
971@CONFIG_KERNEL_TRUE@ pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
972@CONFIG_KERNEL_TRUE@ fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
973@CONFIG_KERNEL_TRUE@ $(RM) $$pkg1 $$pkg2
a7958f7e
BB
974
975tgz-utils: tgz-local rpm-utils
016432fb
ED
976@CONFIG_USER_TRUE@ name=${PACKAGE}; \
977@CONFIG_USER_TRUE@ version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
978@CONFIG_USER_TRUE@ arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
979@CONFIG_USER_TRUE@ pkg1=$${name}-$${version}.$${arch}.rpm; \
980@CONFIG_USER_TRUE@ fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
981@CONFIG_USER_TRUE@ $(RM) $$pkg1
a7958f7e
BB
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:
016432fb 994@CONFIG_KERNEL_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" arch-common
c2dceb5c
PS
995
996arch-utils:
016432fb 997@CONFIG_USER_TRUE@ $(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" arch-common
c2dceb5c
PS
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); \
86933a6e
BB
1035@CONFIG_KERNEL_TRUE@ for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
1036@CONFIG_KERNEL_TRUE@ $(INSTALL) -D $$instfile $$instdest/$$instfile; \
1037@CONFIG_KERNEL_TRUE@ done
c5f70460
BB
1038
1039ctags:
1040 $(RM) $(top_srcdir)/tags
1041 find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
1042
1043etags:
1044 $(RM) $(top_srcdir)/TAGS
1045 find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
1046
1047tags: ctags etags
1048
287b2fb1
BB
1049pkg: @DEFAULT_PACKAGE@
1050pkg-modules: @DEFAULT_PACKAGE@-modules
1051pkg-utils: @DEFAULT_PACKAGE@-utils
8934764e 1052
bf9f3bac 1053# Tell versions [3.59,3.63) of GNU make to not export all variables.
1054# Otherwise a system limit (for SysV at least) may be exceeded.
1055.NOEXPORT: