mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-03-11 22:13:10 +03:00

An update to the build system to properly support all commonly used Makefile targets these include: make all # Build everything make install # Install everything make clean # Clean up build products make distclean # Clean up everything make dist # Create package tarball make srpm # Create package source RPM make rpm # Create package binary RPMs make tags # Create ctags and etags for everything Extra care was taken to ensure that the source RPMs are fully rebuildable against Fedora/RHEL/Chaos kernels. To build binary RPMs from the source RPM for your system simply run: rpmbuild --rebuild spl-x.y.z-1.src.rpm This will produce two binary RPMs with correct 'requires' dependencies for your kernel. One will contain all spl modules and support utilities, the other is a devel package for compiling additional kernel modules which are dependant on the spl. spl-x.y.z-1_<kernel version>.x86_64.rpm spl-devel-x.y.2-1_<kernel version>.x86_64.rpm
20 lines
447 B
Makefile
20 lines
447 B
Makefile
subdir-m += spl
|
|
subdir-m += splat
|
|
|
|
modules clean:
|
|
$(MAKE) -C @LINUX@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
|
|
|
|
modules_install:
|
|
$(MAKE) -C @LINUX@ SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=addon $@
|
|
|
|
distdir:
|
|
list='$(subdir-m)'; for subdir in $$list; do \
|
|
(find $$subdir -name '*.c' -o -name '*.h' | \
|
|
xargs /bin/cp -t $$distdir/$$subdir); \
|
|
done
|
|
|
|
distclean maintainer-clean: clean
|
|
install: modules_install
|
|
all: modules
|
|
check:
|