scons: add uninstall actions for mapnik-config scripts added in r2039)

This commit is contained in:
Dane Springmeyer 2010-07-18 21:40:24 +00:00
parent 31c60dc066
commit 42891914ab

View file

@ -81,11 +81,12 @@ try:
os.chmod(source,0666)
except: pass
target_path = os.path.normpath(install_prefix+'/bin')
full_target = os.path.join(target_path,source)
if 'install' in COMMAND_LINE_TARGETS:
# we must add 'install' catch here because otherwise
# 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.Command(full_target, source,
[
@ -93,11 +94,15 @@ if 'install' in COMMAND_LINE_TARGETS:
Chmod("$TARGET", 0755),
])
env['create_uninstall_target'](env,os.path.join(target_path,source))
source = 'mapnik.pc'
open(source,'w').write(top+pkg_config)
try:
os.chmod(source,0666)
except: pass
target_path = os.path.normpath(install_prefix+'/lib/pkgconfig')
full_target = os.path.join(target_path,source)
env.Install(target_path,source)
env.Alias('install',target_path)
env['create_uninstall_target'](env,full_target)