diff options
Diffstat (limited to 'src/Makefile.in')
-rw-r--r-- | src/Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index dfbb9d7..62eaded 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -31,6 +31,12 @@ OBJS = opkbuild oh-checkbuilddeps oh-applypatches oh-copyconfig \ oh-strip oh-installfiles oh-installdocs oh-gencontrol \ oh-buildopk +PACKAGE = @package@ +VERSION = @version@ + +distdir = ../$(PACKAGE)-$(VERSION)/src +distfiles = Makefile.in $(OBJS) + .PHONY: all all: $(OBJS) @@ -58,3 +64,8 @@ uninstall: printf ' RM %s\n' "$${obj}"; \ rm -f "$(DESTDIR)/$(BINDIR)/$${obj}"; \ done + +.PHONY: distdir +distdir: + @[ -d '$(distdir)' ] || mkdir '$(distdir)' + @cp -pR $(distfiles) $(distdir) |