Add a `scons install` option

scons -c install to uninstall.

Signed-off-by: Anna Schumaker <anna@ocarinaproject.net>
This commit is contained in:
Anna Schumaker 2014-04-09 20:36:29 -04:00
parent cbe725d891
commit 887051e5c1
2 changed files with 15 additions and 0 deletions

6
README
View File

@ -4,6 +4,12 @@ Build:
Clean:
$ scons -c
Install:
$ sudo scons install
Uninstall:
$ sudo scons -c install
Build tests:
$ scons tests

9
config
View File

@ -44,3 +44,12 @@ def ocarina_release(target, source, env):
print os.popen("sha1sum %s.tar.gz" % o_vers).read()
Command("release", None, ocarina_release)
env.Install("/usr/bin", "bin/ocarina")
env.Install("/usr/share", "share/ocarina/")
env.Install("/usr/share/applications", "share/applications/ocarina.desktop")
install = Alias("install", [ "/usr/bin", "/usr/share", "/usr/share/applications" ])
Depends(install, ocarina)
Clean(install, "/usr/share/ocarina")