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 /man/Makefile.in | |
parent | de1fd1294b9d5f1853c369d7c8825f3e8f2fd4ef (diff) |
Add distribution targets to build system.
Diffstat (limited to 'man/Makefile.in')
-rw-r--r-- | man/Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/Makefile.in b/man/Makefile.in index 3ea062c..c8141bb 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -31,6 +31,12 @@ OBJS = opkbuild.1 oh-checkbuilddeps.1 oh-applypatches.1 oh-copyconfig.1 \ oh-strip.1 oh-installfiles.1 oh-installdocs.1 oh-gencontrol.1 \ oh-buildopk.1 +PACKAGE = @package@ +VERSION = @version@ + +distdir = ../$(PACKAGE)-$(VERSION)/man +distfiles = Makefile.in $(OBJS) + .PHONY: all all: $(OBJS) @@ -60,3 +66,8 @@ uninstall: section=$$(echo "$${obj}" | sed 's/^.*[.]\([0-9]\)$$/\1/'); \ rm -f "$(DESTDIR)/$(MANDIR)/man$${section}/$${obj}"; \ done + +.PHONY: distdir +distdir: + @[ -d '$(distdir)' ] || mkdir '$(distdir)' + @cp -pR $(distfiles) $(distdir) |