From 42891914abfe704e430b73742ed6476929a6712c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 18 Jul 2010 21:40:24 +0000 Subject: [PATCH] scons: add uninstall actions for mapnik-config scripts added in r2039) --- utils/mapnik-config/SConscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/mapnik-config/SConscript b/utils/mapnik-config/SConscript index 741fbe749..bda576d4f 100644 --- a/utils/mapnik-config/SConscript +++ b/utils/mapnik-config/SConscript @@ -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)