From 9ce21757892648fa12d66747deed0dd9db790b9e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 13 Feb 2012 22:41:37 -0500 Subject: Add distribution targets to build system. --- (limited to 'src') 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) -- cgit v0.9.1