# Solaris sed does not like spaces bewteen the ;-delimited commands
build_package: package.C.in
@rm -f tmp_package ;\
- sed "s,%LYX_DIR%,$(LYX_ABS_INSTALLED_DATADIR),;\
-s,%LOCALEDIR%,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
-s,%TOP_SRCDIR%,$(LYX_ABS_TOP_SRCDIR),;\
-s,%PROGRAM_SUFFIX%,$(program_suffix)," \
+ sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
+s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
+s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
+s,@PROGRAM_SUFFIX@,$(program_suffix)," \
$(srcdir)/package.C.in > tmp_package ;\
if cmp -s tmp_package package.C ; then \
rm -f tmp_package ;\
// configuration-time.
string const top_srcdir()
{
- static string const dir("%TOP_SRCDIR%");
+ static string const dir("@TOP_SRCDIR@");
return dir;
}
string const hardcoded_localedir()
{
- return string("%LOCALEDIR%");
+ return string("@LOCALEDIR@");
}
string const hardcoded_system_support_dir()
{
- return string("%LYX_DIR%");
+ return string("@LYX_DIR@");
}
string const & with_version_suffix()
{
- static string const program_suffix("%PROGRAM_SUFFIX%");
+ static string const program_suffix("@PROGRAM_SUFFIX@");
static string const
- with_version_suffix(" --with-version-suffix=%PROGRAM_SUFFIX%");
+ with_version_suffix(" --with-version-suffix=@PROGRAM_SUFFIX@");
return program_suffix.empty() ? program_suffix : with_version_suffix;
}
string const & Package::top_srcdir() const
{
- static string const dir("%TOP_SRCDIR%");
+ static string const dir("@TOP_SRCDIR@");
return dir;
}