scons: add uninstall actions for mapnik-config scripts added in r2039)
This commit is contained in:
parent
31c60dc066
commit
42891914ab
1 changed files with 7 additions and 2 deletions
|
@ -81,11 +81,12 @@ try:
|
||||||
os.chmod(source,0666)
|
os.chmod(source,0666)
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
|
target_path = os.path.normpath(install_prefix+'/bin')
|
||||||
|
full_target = os.path.join(target_path,source)
|
||||||
|
|
||||||
if 'install' in COMMAND_LINE_TARGETS:
|
if 'install' in COMMAND_LINE_TARGETS:
|
||||||
# we must add 'install' catch here because otherwise
|
# we must add 'install' catch here because otherwise
|
||||||
# custom command will be run when not installing
|
# custom command will be run when not installing
|
||||||
target_path = os.path.normpath(install_prefix+'/bin')
|
|
||||||
full_target = os.path.join(target_path,source)
|
|
||||||
env.Alias('install',full_target)
|
env.Alias('install',full_target)
|
||||||
env.Command(full_target, source,
|
env.Command(full_target, source,
|
||||||
[
|
[
|
||||||
|
@ -93,11 +94,15 @@ if 'install' in COMMAND_LINE_TARGETS:
|
||||||
Chmod("$TARGET", 0755),
|
Chmod("$TARGET", 0755),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
env['create_uninstall_target'](env,os.path.join(target_path,source))
|
||||||
|
|
||||||
source = 'mapnik.pc'
|
source = 'mapnik.pc'
|
||||||
open(source,'w').write(top+pkg_config)
|
open(source,'w').write(top+pkg_config)
|
||||||
try:
|
try:
|
||||||
os.chmod(source,0666)
|
os.chmod(source,0666)
|
||||||
except: pass
|
except: pass
|
||||||
target_path = os.path.normpath(install_prefix+'/lib/pkgconfig')
|
target_path = os.path.normpath(install_prefix+'/lib/pkgconfig')
|
||||||
|
full_target = os.path.join(target_path,source)
|
||||||
env.Install(target_path,source)
|
env.Install(target_path,source)
|
||||||
env.Alias('install',target_path)
|
env.Alias('install',target_path)
|
||||||
|
env['create_uninstall_target'](env,full_target)
|
||||||
|
|
Loading…
Add table
Reference in a new issue