Tag
Hash :
af2cb9d0
Author :
Date :
2004-01-05T21:49:14
* lib/am/inst-vars.am: New file, define am__vpath_adj_setup, am__vpath_adj, and am__strip_dir. * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am. * lib/am/data.am, lib/am/lisp.am, lib/am/python.am, lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj), $(am__vpath_adj_setup), and $(am__strip_dir) in install and uninstall rules. This fixes installation of nobase_ files in VPATH setups with Sun and OSF1/Tru64 Make. * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use $(am__strip_dir) to simplify install and uninstall rules. * tests/nobase.test: Augment to check installation from VPATH builds.
## automake - create Makefile.in from Makefile.am
## Copyright (C) 2004 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
if %?FIRST%
## These variables help stripping any $(VPATH) that some
## Make implementations prepend before VPATH-found files.
## The issue is discussed at length in distdir.am.
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
## Strip all directories.
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
endif %?FIRST%