]> git.proxmox.com Git - mirror_spl.git/blobdiff - Makefile.am
Add copy-builtin to EXTRA_DIST
[mirror_spl.git] / Makefile.am
index cae511de76c20d71bfae34207f8c57c54238bdc9..6000a7d14731e035a739dfd2ef6c14aa977c56b6 100644 (file)
@@ -1,6 +1,7 @@
 include $(top_srcdir)/config/rpm.am
-include ${top_srcdir}/config/deb.am
-include ${top_srcdir}/config/tgz.am
+include $(top_srcdir)/config/deb.am
+include $(top_srcdir)/config/tgz.am
+include $(top_srcdir)/config/arch.am
 
 if CONFIG_USER
 USER_DIR = lib cmd scripts
@@ -10,10 +11,11 @@ KERNEL_DIR = module include
 endif
 SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
 
-AUTOMAKE_OPTIONS = foreign dist-zip
+AUTOMAKE_OPTIONS = foreign
 EXTRA_DIST  = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
-noinst_HEADERS = spl_config.h
+EXTRA_DIST += dkms.postinst copy-builtin
+noinst_HEADERS = spl_config.h spl.release
 
 distclean-local::
        -$(RM) -R autom4te*.cache
@@ -29,9 +31,8 @@ distclean-local::
 
 if CONFIG_KERNEL
 install-data-local:
-       destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
-       instdest=$(DESTDIR)/${prefix}/src/$$destname; \
-       echo "${SPL_META_VERSION}" >$$instdest/spl.release; \
+       release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
+       instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
        for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
                $(INSTALL) -D $$instfile $$instdest/$$instfile; \
        done