summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.in')
-rw-r--r--lib/Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 07c5b35..f0ecb1a 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -29,6 +29,12 @@ LIBDIR = @libdir@
OBJS = controlfields architecture archive
+PACKAGE = @package@
+VERSION = @version@
+
+distdir = ../$(PACKAGE)-$(VERSION)/lib
+distfiles = Makefile.in $(OBJS)
+
.PHONY: all
all: $(OBJS)
@@ -56,3 +62,8 @@ uninstall:
printf ' RM %s\n' "$${obj}"; \
rm -f "$(DESTDIR)/$(LIBDIR)/opkhelper/$${obj}"; \
done
+
+.PHONY: distdir
+distdir:
+ @[ -d '$(distdir)' ] || mkdir '$(distdir)'
+ @cp -pR $(distfiles) $(distdir)