From 1626f26e15b0e52fde34348f36e114a954a66565 Mon Sep 17 00:00:00 2001 From: paul.betafive@gmail.com Date: Sat, 17 Aug 2013 08:14:04 -0400 Subject: 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 git-svn-id: http://opkg.googlecode.com/svn/branches/opkg-0.2.x@663 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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 -- cgit v0.9.1