Files
mirror_zfs/config/tgz.am
T

32 lines
1.0 KiB
Plaintext
Raw Normal View History

# SPDX-License-Identifier: CDDL-1.0
2020-07-13 17:24:07 -04:00
PHONY += tgz tgz-kmod tgz-utils tgz-local
2010-08-26 11:22:58 -07:00
tgz-local:
@(if test "${HAVE_ALIEN}" = "no"; then \
echo -e "\n" \
"*** Required util ${ALIEN} missing. Please install the\n" \
2018-02-16 07:58:23 +11:00
"*** package for your distribution which provides ${ALIEN},\n" \
2010-08-26 11:22:58 -07:00
"*** re-run configure, and try again.\n"; \
2018-02-16 07:58:23 +11:00
exit 1; \
2010-08-26 11:22:58 -07:00
fi)
2013-02-17 12:10:17 -08:00
tgz-kmod: tgz-local rpm-kmod
name=${PACKAGE}; \
version=${VERSION}-${RELEASE}; \
arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
$(RM) $$pkg1
2010-08-26 11:22:58 -07:00
tgz-utils: tgz-local rpm-utils
name=${PACKAGE}; \
2013-02-17 12:10:17 -08:00
version=${VERSION}-${RELEASE}; \
2011-06-16 12:14:33 -07:00
arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
2010-08-26 11:22:58 -07:00
pkg1=$${name}-$${version}.$${arch}.rpm; \
pkg2=$${name}-devel-$${version}.$${arch}.rpm; \
pkg3=$${name}-test-$${version}.$${arch}.rpm; \
fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
$(RM) $$pkg1 $$pkg2 $$pkg3
2013-02-17 12:10:17 -08:00
tgz: tgz-kmod tgz-utils