]> git.proxmox.com Git - mirror_zfs.git/commitdiff
autoconf: use include directives instead of recursing down rpm
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sat, 9 Apr 2022 17:44:40 +0000 (19:44 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 May 2022 17:19:25 +0000 (10:19 -0700)
Also simplify .gitignore

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13316

Makefile.am
configure.ac
rpm/.gitignore [new file with mode: 0644]
rpm/Makefile.am
rpm/generic/.gitignore [deleted file]
rpm/generic/Makefile.am [deleted file]
rpm/redhat/.gitignore [deleted file]
rpm/redhat/Makefile.am [deleted file]

index 09d5a6b804d7fd9e57cfae358861636f35fdb674..7830f2bdd4e4dd2dfc30e7c924c1c3590bf75911 100644 (file)
@@ -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
index dd1f63f492f9f8e9fa654f9ae0afdf2b574743ea..292f9a45f1d1a431b70b35321d7611a43d398c3e 100644 (file)
@@ -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 (file)
index 0000000..f83960d
--- /dev/null
@@ -0,0 +1 @@
+/*/*.spec
index f2cf72cef13ce964141811d9ba5fe472f46cc179..216cb731fea96eea5e91bddb2cdcab55dc6a0839 100644 (file)
@@ -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 (file)
index 7f5daaf..0000000
+++ /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 (file)
index 89b1364..0000000
+++ /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 (file)
index 7f5daaf..0000000
+++ /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 (file)
index 89b1364..0000000
+++ /dev/null
@@ -1 +0,0 @@
-EXTRA_DIST = zfs.spec.in zfs-kmod.spec.in zfs-dkms.spec.in