mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
autoconf: use include directives instead of recursing down lib
As a bonus, this also adds zfs-mount-generator (previously undescended down) and libzstd (not included) to CppCheck As a bonus bonus, abigail rules work out-of-tree, too Against current trunk: $ diff -U0 ./destdir.listing ~/store/code/zfs/destdir.listing -destdir/usr/local/include/libspl/sscanf.h $ diff --color -U0 ./zfs-2.1.99.tar.gz.listing ../oot/zfs-2.1.99.tar.gz.listing | grep -v @@ | grep -v /Makefile -zfs-2.1.99/config/Abigail.am -zfs-2.1.99/lib/libspl/include/util/ -zfs-2.1.99/lib/libspl/include/util/sscanf.h $ diff --color -U0 ./zfs-2.1.99.tar.gz.listing ../oot/zfs-2.1.99.tar.gz.listing | grep -v @@ | grep /Makefile -zfs-2.1.99/lib/libavl/Makefile.in -zfs-2.1.99/lib/libefi/Makefile.in -zfs-2.1.99/lib/libicp/Makefile.in -zfs-2.1.99/lib/libnvpair/Makefile.in -zfs-2.1.99/lib/libshare/Makefile.in -zfs-2.1.99/lib/libspl/include/Makefile.in -zfs-2.1.99/lib/libspl/include/os/freebsd/Makefile.am -zfs-2.1.99/lib/libspl/include/os/freebsd/Makefile.in -zfs-2.1.99/lib/libspl/include/os/freebsd/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/os/freebsd/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/os/linux/Makefile.am -zfs-2.1.99/lib/libspl/include/os/linux/Makefile.in -zfs-2.1.99/lib/libspl/include/os/linux/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/os/linux/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/os/Makefile.am -zfs-2.1.99/lib/libspl/include/os/Makefile.in -zfs-2.1.99/lib/libspl/include/rpc/Makefile.am -zfs-2.1.99/lib/libspl/include/rpc/Makefile.in -zfs-2.1.99/lib/libspl/include/sys/dktp/Makefile.am -zfs-2.1.99/lib/libspl/include/sys/dktp/Makefile.in -zfs-2.1.99/lib/libspl/include/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/util/Makefile.am -zfs-2.1.99/lib/libspl/include/util/Makefile.in -zfs-2.1.99/lib/libspl/Makefile.in -zfs-2.1.99/lib/libtpool/Makefile.in -zfs-2.1.99/lib/libunicode/Makefile.in -zfs-2.1.99/lib/libuutil/Makefile.in -zfs-2.1.99/lib/libzfsbootenv/Makefile.in -zfs-2.1.99/lib/libzfs_core/Makefile.in -zfs-2.1.99/lib/libzfs/Makefile.in -zfs-2.1.99/lib/libzpool/Makefile.in -zfs-2.1.99/lib/libzstd/Makefile.in -zfs-2.1.99/lib/libzutil/Makefile.in -zfs-2.1.99/lib/Makefile.in Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13316
This commit is contained in:
+21
-2
@@ -5,15 +5,17 @@ INSTALL_MOD_PATH ?= $(DESTDIR)
|
||||
|
||||
all: modules
|
||||
distclean maintainer-clean: clean
|
||||
install: modules_install
|
||||
uninstall: modules_uninstall
|
||||
install: modules_install data_install
|
||||
uninstall: modules_uninstall data_uninstall
|
||||
check:
|
||||
|
||||
.PHONY: all distclean maintainer-clean install uninstall check distdir \
|
||||
modules modules-Linux modules-FreeBSD modules-unknown \
|
||||
clean clean-Linux clean-FreeBSD \
|
||||
modules_install modules_install-Linux modules_install-FreeBSD \
|
||||
data_install data_install-Linux data_install-FreeBSD \
|
||||
modules_uninstall modules_uninstall-Linux modules_uninstall-FreeBSD \
|
||||
data_uninstall data_uninstall-Linux data_uninstall-FreeBSD \
|
||||
cppcheck cppcheck-Linux cppcheck-FreeBSD
|
||||
|
||||
# For FreeBSD, use debug options from ./configure if not overridden.
|
||||
@@ -110,6 +112,15 @@ modules_install-FreeBSD:
|
||||
|
||||
modules_install: modules_install-@ac_system@
|
||||
|
||||
data_install-Linux:
|
||||
@mkdir -p $(DESTDIR)/@prefix@/src/zfs-@VERSION@/@LINUX_VERSION@
|
||||
cp ../zfs.release ../zfs_config.h @LINUX_SYMBOLS@ $(DESTDIR)/@prefix@/src/zfs-@VERSION@/@LINUX_VERSION@
|
||||
|
||||
data_install-FreeBSD:
|
||||
@
|
||||
|
||||
data_install: data_install-@ac_system@
|
||||
|
||||
modules_uninstall-Linux: modules_uninstall-Linux-legacy
|
||||
@# Uninstall the kernel modules
|
||||
$(RM) $(addprefix $(KMODDIR)/$(INSTALL_MOD_DIR)/,zfs.ko spl.ko)
|
||||
@@ -119,6 +130,14 @@ modules_uninstall-FreeBSD:
|
||||
|
||||
modules_uninstall: modules_uninstall-@ac_system@
|
||||
|
||||
data_uninstall-Linux:
|
||||
$(RM) $(addprefix $(DESTDIR)/@prefix@/src/zfs-@VERSION@/@LINUX_VERSION@/,zfs.release zfs_config.h @LINUX_SYMBOLS@)
|
||||
|
||||
data_uninstall-FreeBSD:
|
||||
@
|
||||
|
||||
data_uninstall: data_uninstall-@ac_system@
|
||||
|
||||
cppcheck-Linux:
|
||||
@CPPCHECK@ -j@CPU_COUNT@ --std=c99 --quiet --force --error-exitcode=2 \
|
||||
--inline-suppr \
|
||||
|
||||
Reference in New Issue
Block a user