summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
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