diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-24 11:19:55 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-24 11:54:42 +0100 |
commit | 10d1aa3b64f61408bb092d998fb8c5f453a7749c (patch) | |
tree | 84b954bbc963c67c687eff949dc791170552fe1d /Makefile.am | |
parent | 5c1346dae72064f7fd9c2afe5517afc6f050cd9a (diff) | |
download | libguestfs-10d1aa3b64f61408bb092d998fb8c5f453a7749c.tar.gz libguestfs-10d1aa3b64f61408bb092d998fb8c5f453a7749c.tar.xz libguestfs-10d1aa3b64f61408bb092d998fb8c5f453a7749c.zip |
build: Add 'bindist' rule for building binary distribution.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 58736f83..55e3ed16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -208,3 +208,21 @@ quickcheck: LIBGUESTFS_PATH=appliance \ test-tool/libguestfs-test-tool \ --helper test-tool/libguestfs-test-tool-helper + +# Binary distribution. +# Note we remove the supermin appliance and adjust some +# directories to make them non-Fedora-specific. + +BINTMPDIR = /tmp/libguestfs-bin +bindist: + rm -rf $(BINTMPDIR) + mkdir $(BINTMPDIR) + $(MAKE) + $(MAKE) DESTDIR=$(BINTMPDIR) install + rm -r $(BINTMPDIR)/$(libdir)/guestfs/supermin.d + rm $(BINTMPDIR)/$(libdir)/guestfs/kmod.whitelist + mv $(BINTMPDIR)/$(prefix)/lib64/* $(BINTMPDIR)/$(libdir) + mv $(BINTMPDIR)/usr/lib64/* $(BINTMPDIR)/$(libdir) + -find $(BINTMPDIR) -type d -exec rmdir --ignore-fail-on-non-empty {} \; + (cd $(BINTMPDIR) && tar zcf - .) \ + > libguestfs-$(VERSION)-$(host_cpu).tar.gz |