build: make a rule less dependent on exact source tree layout
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 29 Aug 2012 14:22:38 +0000 (16:22 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 30 Aug 2012 13:22:00 +0000 (15:22 +0200)
This is mostly a preparatory change in view of future ones.

* man/Makefile.am (.x.1): Use '$(abs_top_builddir)/src' to access
the 'src' directory.

man/Makefile.am

index 3d6a963..ff1c1ab 100644 (file)
@@ -168,7 +168,7 @@ mapped_name = `echo $*|sed 's/^install$$/ginstall/; s/^test$$/[/'`
            && {                                                \
                 rm -rf $t;                                     \
                 mkdir $t;                                      \
-                (cd $t && $(LN_S) ../../src/$(mapped_name) $*); \
+                (cd $t && $(LN_S) $(abs_top_builddir)/src/$(mapped_name) $*); \
                    $(PERL) -- $(srcdir)/help2man               \
                     --source='$(PACKAGE_STRING)'               \
                     --include=$(srcdir)/$*.x                   \