Have 'make dist' work with builddir != srcdir.
authorElliot Lee <sopwith@src.gnome.org>
Thu, 19 Aug 1999 20:17:51 +0000 (20:17 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Thu, 19 Aug 1999 20:17:51 +0000 (20:17 +0000)
Have 'make dist' work with builddir != srcdir.

svn path=/trunk/; revision=883

intl/Makefile.in

index 8adfd19..a7a145a 100644 (file)
@@ -180,7 +180,7 @@ maintainer-clean: distclean
 
 # GNU gettext needs not contain the file `VERSION' but contains some
 # other files which should not be distributed in other packages.
-distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)/$(subdir)
 dist distdir: Makefile $(DISTFILES)
        if test "$(PACKAGE)" = gettext; then \
          additional="$(DISTFILES.gettext)"; \
@@ -195,8 +195,8 @@ dist distdir: Makefile $(DISTFILES)
 distcopy: Makefile $(DISTFILES)
          additional="$(DISTFILES.normal)";
        for file in $(DISTFILES.common) $$additional; do \
-         ln $(srcdir)/$$file ../$(distdir) 2> /dev/null \
-           || cp -p $(srcdir)/$$file ../$(distdir); \
+         ln $(srcdir)/$$file $(distdir) 2> /dev/null \
+           || cp -p $(srcdir)/$$file $(distdir); \
        done
 
 dist-libc: