diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-23 15:10:01 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-23 15:10:01 +0200 |
commit | 7148787d22a5a561823d5a152a645390299ccabd (patch) | |
tree | 410e52b386383005a090cf03b76be04b86fd63fb | |
parent | 54cde351ef3c5bb63fb5f2fb8a1c0b9950d3a647 (diff) | |
download | meson-7148787d22a5a561823d5a152a645390299ccabd.zip meson-7148787d22a5a561823d5a152a645390299ccabd.tar.gz meson-7148787d22a5a561823d5a152a645390299ccabd.tar.bz2 |
Install directions.
-rwxr-xr-x | install_meson.py | 5 | ||||
-rw-r--r-- | readme.txt | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/install_meson.py b/install_meson.py index 187ca41..8a2c48d 100755 --- a/install_meson.py +++ b/install_meson.py @@ -42,7 +42,10 @@ if options.prefix[0] != '/': print('Error, prefix must be an absolute path.') sys.exit(1) -install_root = os.path.join(options.destdir, options.prefix[1:]) +if options.destdir == '': + install_root = options.prefix +else: + install_root = os.path.join(options.destdir, options.prefix[1:]) script_dir = os.path.join(install_root, 'share/meson-' + version) bin_dir = os.path.join(install_root, 'bin') @@ -4,6 +4,18 @@ system. Dependencies: Python3 and Python-Ply +Installing from source + +You can run Meson directly from a revision control checkout. +Installing it system-wide is simple. + +Configure step: None +Compile step: ./compile_meson.py +Install step: [sudo] ./install_meson.py --prefix /your/prefix --destdir /destdir/path + +The default value of prefix is /usr/local. The default value of destdir +is empty. + Running: Meson requires that you have a source directory and a build directory @@ -19,5 +31,6 @@ can do things like this: cd source_root; mkdir build; cd build; meson.py .. cd source_root; mkdir build; meson.py build + For questions contact the mailing list at https://lists.sourceforge.net/lists/listinfo/meson-devel |