mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
016432fbeb
Currently, when configure --with-config is used, selective compilation is only effective for the simple "make" case. Package builders (e.g. make rpm) still build everything (utils and modules). This patch fixes that. This patch also drops the duplicate rpm-modules build target. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Prakash Surya <surya1@llnl.gov> Issue zfsonlinux/zfs#851
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
###############################################################################
|
|
# Written by Prakash Surya <surya1@llnl.gov>
|
|
###############################################################################
|
|
# Build targets for RPM packages.
|
|
###############################################################################
|
|
|
|
sarch-modules:
|
|
$(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" sarch-common
|
|
|
|
sarch-utils:
|
|
$(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" sarch-common
|
|
|
|
sarch: sarch-modules sarch-utils
|
|
|
|
arch-modules:
|
|
if CONFIG_KERNEL
|
|
$(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}-modules" arch-common
|
|
endif
|
|
|
|
arch-utils:
|
|
if CONFIG_USER
|
|
$(MAKE) $(AM_MAKEFLAGS) pkg="${PACKAGE}" arch-common
|
|
endif
|
|
|
|
arch: arch-modules arch-utils
|
|
|
|
arch-local:
|
|
@(if test "${HAVE_MAKEPKG}" = "no"; then \
|
|
echo -e "\n" \
|
|
"*** Required util ${MAKEPKG} missing. Please install the\n" \
|
|
"*** package for your distribution which provides ${MAKEPKG},\n" \
|
|
"*** re-run configure, and try again.\n"; \
|
|
exit 1; \
|
|
fi;)
|
|
|
|
sarch-common: dist
|
|
pkgbuild=PKGBUILD-$(pkg); \
|
|
$(MAKE) $(AM_MAKEFLAGS) arch-local || exit 1; \
|
|
$(MAKEPKG) --allsource --skipinteg --nodeps -p $$pkgbuild || exit 1;
|
|
|
|
arch-common: dist
|
|
pkgbuild=PKGBUILD-$(pkg); \
|
|
$(MAKE) $(AM_MAKEFLAGS) arch-local || exit 1; \
|
|
$(MAKEPKG) --skipinteg -p $$pkgbuild || exit 1;
|