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 'lib') 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) -- cgit v0.9.1