diff options
Diffstat (limited to 'man')
-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) |