aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-23 15:10:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-23 15:10:01 +0200
commit7148787d22a5a561823d5a152a645390299ccabd (patch)
tree410e52b386383005a090cf03b76be04b86fd63fb
parent54cde351ef3c5bb63fb5f2fb8a1c0b9950d3a647 (diff)
downloadmeson-7148787d22a5a561823d5a152a645390299ccabd.zip
meson-7148787d22a5a561823d5a152a645390299ccabd.tar.gz
meson-7148787d22a5a561823d5a152a645390299ccabd.tar.bz2
Install directions.
-rwxr-xr-xinstall_meson.py5
-rw-r--r--readme.txt13
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')
diff --git a/readme.txt b/readme.txt
index f7c0ae5..ec563ca 100644
--- a/readme.txt
+++ b/readme.txt
@@ -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