aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2017-01-12 14:12:42 -0600
committerEric Sandeen <sandeen@redhat.com>2017-01-12 14:12:42 -0600
commit1f31bd2574c4ac8c946b750115183c933d1675c9 (patch)
tree7f7f2e41440bd20e8e8870df6a01b3f04876d0ee /Makefile
parent11613dd1f2642708c9b7d49acb9eed5a6a477cb2 (diff)
downloadxfsprogs-dev-1f31bd2574c4ac8c946b750115183c933d1675c9.tar.gz
build: add tar.xz target
kup generates .xz files, and fedora RPMs now use that. It'd be nice to have a handy target to generate .xz files locally, so hack that in. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Bill O'Donnell <billodo@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 84dc62ceb2..6e45733ee6 100644
--- a/Makefile
+++ b/Makefile
@@ -26,18 +26,19 @@ endif
SRCDIR = $(PKG_NAME)-$(PKG_VERSION)
SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
+SRCTARXZ = $(PKG_NAME)-$(PKG_VERSION).tar.xz
CONFIGURE = aclocal.m4 configure config.guess config.sub install-sh ltmain.sh
LSRCFILES = configure.ac release.sh README VERSION $(CONFIGURE)
SRCTARINC = m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
m4/ltversion.m4 po/xfsprogs.pot .gitcensus $(CONFIGURE)
LDIRT = config.log .ltdep .dep config.status config.cache confdefs.h \
- conftest* built .census install.* install-dev.* *.gz \
+ conftest* built .census install.* install-dev.* *.gz *.xz \
autom4te.cache/* libtool include/builddefs include/platform_defs.h
ifeq ($(HAVE_BUILDDEFS), yes)
LDIRDIRT = $(SRCDIR)
-LDIRT += $(SRCTAR)
+LDIRT += $(SRCTAR) $(SRCTARXZ)
endif
# header install rules to populate include/xfs correctly
@@ -165,6 +166,11 @@ $(SRCTAR) : default $(SRCTARINC) .gitcensus
`cat .gitcensus` $(SRCTARINC)
echo Wrote: $@
+$(SRCTARXZ) : default $(SRCTARINC) .gitcensus
+ $(Q)$(TAR) --transform "s,^,$(SRCDIR)/," -Jcf $(SRCDIR).tar.xz \
+ `cat .gitcensus` $(SRCTARINC)
+ echo Wrote: $@
+
.gitcensus: $(_FORCE)
$(Q)if test -d .git; then \
git ls-files > .gitcensus && echo "new .gitcensus"; \