# This file is part of MKF. # # MKF 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 of the License, or # (at your option) any later version. # # MKF 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 MKF; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Copyright (c) 2004 Alexandre Becoulet _if_var_eq prefix var_define prefix /usr _else var_append opt_c_compiler -DPREFIX=\"{PVAR,prefix}\" var_append opt_c++_compiler -DPREFIX=\"{PVAR,prefix}\" _end_if _if_file_exists {PVAR,prefix} msg_info using {PVAR,prefix} as target directory prefix _else msg_error can't find {PVAR,prefix} prefix directory _end_if _if_var_eq install_dir var_define install_dir {PVAR,prefix} _end_if _if_exec_ok mkdir -p {PVAR,install_dir} msg_info using {PVAR,install_dir} as install directory _else msg_error can't create {PVAR,install_dir} install directory _end_if