From 2820719800cde2576baa12a43e4b9124a1906e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sat, 9 Apr 2022 19:44:40 +0200 Subject: [PATCH] autoconf: use include directives instead of recursing down rpm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also simplify .gitignore Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13316 --- Makefile.am | 2 +- configure.ac | 3 --- rpm/.gitignore | 1 + rpm/Makefile.am | 9 ++++++++- rpm/generic/.gitignore | 3 --- rpm/generic/Makefile.am | 1 - rpm/redhat/.gitignore | 3 --- rpm/redhat/Makefile.am | 1 - 8 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 rpm/.gitignore delete mode 100644 rpm/generic/.gitignore delete mode 100644 rpm/generic/Makefile.am delete mode 100644 rpm/redhat/.gitignore delete mode 100644 rpm/redhat/Makefile.am diff --git a/Makefile.am b/Makefile.am index 09d5a6b804..7830f2bdd4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,7 +13,7 @@ ACLOCAL_AMFLAGS = -I config SUBDIRS = include if BUILD_LINUX -SUBDIRS += rpm +include $(srcdir)/%D%/rpm/Makefile.am endif CPPCHECKDIRS += etc/systemd/system-generators diff --git a/configure.ac b/configure.ac index dd1f63f492..292f9a45f1 100644 --- a/configure.ac +++ b/configure.ac @@ -97,12 +97,9 @@ AC_CONFIG_FILES([ lib/libzfs_core/libzfs_core.pc module/Kbuild module/Makefile - rpm/Makefile - rpm/generic/Makefile rpm/generic/zfs-dkms.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs.spec - rpm/redhat/Makefile rpm/redhat/zfs-dkms.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs.spec diff --git a/rpm/.gitignore b/rpm/.gitignore new file mode 100644 index 0000000000..f83960d1a7 --- /dev/null +++ b/rpm/.gitignore @@ -0,0 +1 @@ +/*/*.spec diff --git a/rpm/Makefile.am b/rpm/Makefile.am index f2cf72cef1..216cb731fe 100644 --- a/rpm/Makefile.am +++ b/rpm/Makefile.am @@ -1 +1,8 @@ -SUBDIRS = generic redhat +EXTRA_DIST += \ + %D%/generic/zfs-dkms.spec.in \ + %D%/generic/zfs-kmod.spec.in \ + %D%/generic/zfs.spec.in \ + \ + %D%/redhat/zfs-dkms.spec.in \ + %D%/redhat/zfs-kmod.spec.in \ + %D%/redhat/zfs.spec.in diff --git a/rpm/generic/.gitignore b/rpm/generic/.gitignore deleted file mode 100644 index 7f5daafdd6..0000000000 --- a/rpm/generic/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/zfs-dkms.spec -/zfs-kmod.spec -/zfs.spec diff --git a/rpm/generic/Makefile.am b/rpm/generic/Makefile.am deleted file mode 100644 index 89b13640d6..0000000000 --- a/rpm/generic/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -EXTRA_DIST = zfs.spec.in zfs-kmod.spec.in zfs-dkms.spec.in diff --git a/rpm/redhat/.gitignore b/rpm/redhat/.gitignore deleted file mode 100644 index 7f5daafdd6..0000000000 --- a/rpm/redhat/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/zfs-dkms.spec -/zfs-kmod.spec -/zfs.spec diff --git a/rpm/redhat/Makefile.am b/rpm/redhat/Makefile.am deleted file mode 100644 index 89b13640d6..0000000000 --- a/rpm/redhat/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -EXTRA_DIST = zfs.spec.in zfs-kmod.spec.in zfs-dkms.spec.in