## - DIR2 relative pathname, relative to the current directory
## Output:
## - reldir relative pathname of DIR2, relative to DIR1
-am__relativize = \
+am.dist.relativize-path = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
+ $(am.dist.relativize-path); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
+ $(am.dist.relativize-path); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test Automake-provided internal make macro $(am__relativize).
+# Test Automake-provided internal make macro $(am.dist.relativize-path).
am_create_testdir=empty
. ./defs || exit 1
.PHONY: test
test:
- @$(am__relativize); echo "result: '$$reldir'"; set -x; \
+ @$(am.dist.relativize-path); echo "result: '$$reldir'"; set -x; \
case $${reldir:-.} in "$$exp"|"$$exp/.") ;; *) exit 1;; esac
END
env dir1=$1 dir2=$2 exp=$4 $MAKE test
}
-# am__relativize
-# ~~~~~~~~~~~~~~
+# am.dist.relativize-path
+# ~~~~~~~~~~~~~~~~~~~~~~~
# Computes a relative pathname RELDIR such that DIR1/RELDIR = DIR2.
# Input:
# - DIR1 relative pathname, relative to the current directory