diff options
mode: <>2013-08-17 08:14:04 (EDT)
committer <>2013-08-17 08:14:04 (EDT)
commit1626f26e15b0e52fde34348f36e114a954a66565 (patch)
parentbe85f59136bc7322f18b2d5395f8067faf797810 (diff) 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 <> git-svn-id: e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
1 files changed, 9 insertions, 0 deletions
diff --git a/ b/
index da4ef69..05dc9d4 100644
--- a/
+++ b/
@@ -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