diff options
author | P. 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) |
commit | 9ce21757892648fa12d66747deed0dd9db790b9e (patch) | |
tree | c6ae6885ff771bcdadfa05c968bcf5e8cb5e7b1d /lib | |
parent | de1fd1294b9d5f1853c369d7c8825f3e8f2fd4ef (diff) |
Add distribution targets to build system.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.in | 11 |
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) |