diff options
author | paul.betafive@gmail.com <paul.betafive@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2013-08-17 08:14:04 (EDT) |
---|---|---|
committer | paul.betafive@gmail.com <paul.betafive@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2013-08-17 08:14:04 (EDT) |
commit | 1626f26e15b0e52fde34348f36e114a954a66565 (patch) | |
tree | d3b96ba1a16ef287070289bcfa913e5a9aaa8499 | |
parent | be85f59136bc7322f18b2d5395f8067faf797810 (diff) |
Makefile.am: Remove libopkg/config.h from distribution archive
A new target is added, opkg-dist, which creates a .tar.gz distribution archive
without the file libopkg/config.h.
This is a bit of a hack and is a temporary solution. The real solution will be
to ensure config.h is not installed and not needed by public API headers.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
git-svn-id: http://opkg.googlecode.com/svn/branches/opkg-0.2.x@663 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index da4ef69..05dc9d4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,3 +35,12 @@ MAINTAINERCLEANFILES= \ package: all-recursive STRIPPROG=$(STRIP) INSTALL=$$PWD/install-sh binary-arch + +# Ensure libopkg/config.h doesn't slip into a distribution archive. +# TODO: Fix headers and remove config.h from libopkg_include_HEADERS so that +# this hack isn't needed! +opkg-distdir: distdir + rm -f $(distdir)/libopkg/config.h + +opkg-dist: opkg-distdir + tar c $(distdir) | gzip -9 > $(distdir).tar.gz |