diff options
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) |