X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=6bf013ec9fae3f03e46e1a32b46a9d5123394db9;hb=ae0f0ba950bed72be0635c29d3dfecb5a811f121;hp=833bee64e511289fbe4c0d18a01e6c094ae166d1;hpb=fd7fd5ebcf6cceb107dd27592a9bd7d60f93738f;p=zfs.git diff --git a/Makefile.am b/Makefile.am index 833bee6..6bf013e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,23 +1,25 @@ 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 +SUBDIRS = include rpm if CONFIG_USER SUBDIRS += dracut udev etc man scripts lib cmd endif if CONFIG_KERNEL SUBDIRS += module + +extradir = /usr/src/zfs-$(VERSION) +extra_HEADERS = zfs.release.in zfs_config.h.in + +kerneldir = /usr/src/zfs-$(VERSION)/$(LINUX_VERSION) +nodist_kernel_HEADERS = zfs.release zfs_config.h module/$(LINUX_SYMBOLS) endif AUTOMAKE_OPTIONS = foreign -EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in +EXTRA_DIST = autogen.sh copy-builtin EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am -EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown -EXTRA_DIST += OPENSOLARIS.LICENSE ZFS.RELEASE -EXTRA_DIST += dkms.postinst copy-builtin -noinst_HEADERS = zfs_config.h zfs.release +EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE distclean-local:: -$(RM) -R autom4te*.cache @@ -31,15 +33,6 @@ distclean-local:: -o -name '*.order' -o -name '*.markers' \) \ -type f -print | xargs $(RM) -if CONFIG_KERNEL -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; \ - done -endif - ctags: $(RM) $(top_srcdir)/tags find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags @@ -51,5 +44,5 @@ etags: tags: ctags etags pkg: @DEFAULT_PACKAGE@ -pkg-modules: @DEFAULT_PACKAGE@-modules +pkg-kmod: @DEFAULT_PACKAGE@-kmod pkg-utils: @DEFAULT_PACKAGE@-utils