summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-02-13 22:41:37 (EST)
committer P. J. McDermott <pjm@nac.net>2012-02-13 22:41:37 (EST)
commit9ce21757892648fa12d66747deed0dd9db790b9e (patch)
treec6ae6885ff771bcdadfa05c968bcf5e8cb5e7b1d /src
parentde1fd1294b9d5f1853c369d7c8825f3e8f2fd4ef (diff)
Add distribution targets to build system.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index dfbb9d7..62eaded 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -31,6 +31,12 @@ OBJS = opkbuild oh-checkbuilddeps oh-applypatches oh-copyconfig \
oh-strip oh-installfiles oh-installdocs oh-gencontrol \
oh-buildopk
+PACKAGE = @package@
+VERSION = @version@
+
+distdir = ../$(PACKAGE)-$(VERSION)/src
+distfiles = Makefile.in $(OBJS)
+
.PHONY: all
all: $(OBJS)
@@ -58,3 +64,8 @@ uninstall:
printf ' RM %s\n' "$${obj}"; \
rm -f "$(DESTDIR)/$(BINDIR)/$${obj}"; \
done
+
+.PHONY: distdir
+distdir:
+ @[ -d '$(distdir)' ] || mkdir '$(distdir)'
+ @cp -pR $(distfiles) $(distdir)