Remove ARCH packaging
[zfs.git] / Makefile.am
index 9ffd6be..2897ae9 100644 (file)
@@ -1,15 +1,14 @@
 include $(top_srcdir)/config/rpm.am
 include $(top_srcdir)/config/deb.am
 include $(top_srcdir)/config/tgz.am
-include $(top_srcdir)/config/arch.am
 
+SUBDIRS = include
 if CONFIG_USER
-USER_DIR = dracut udev etc man scripts lib cmd
+SUBDIRS += dracut udev etc man scripts lib cmd
 endif
 if CONFIG_KERNEL
-KERNEL_DIR = module
+SUBDIRS += module
 endif
-SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include
 
 AUTOMAKE_OPTIONS = foreign
 EXTRA_DIST  = autogen.sh zfs.spec.in zfs-modules.spec.in
@@ -36,7 +35,7 @@ install-data-local:
        release=$(ZFS_META_VERSION)-$(ZFS_META_RELEASE); \
        instdest=$(DESTDIR)/usr/src/zfs-$$release/$(LINUX_VERSION); \
        for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
-               $(INSTALL) -D $$instfile $$instdest/$$instfile; \
+               $(INSTALL) -m 644 -D $$instfile $$instdest/$$instfile; \
        done
 endif