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