From 82e9f5b68cefbadaae4a5453fbef131df32b86c3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 4 Jan 2013 12:32:53 -0800 Subject: [PATCH] clear out invalid plugins from source directory to ensure that 'make local' target does not crash --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SConstruct b/SConstruct index 868de44b8..3444d188e 100644 --- a/SConstruct +++ b/SConstruct @@ -1699,6 +1699,9 @@ if not HELP_REQUESTED: SConscript('plugins/input/%s/build.py' % plugin) else: color_print(1,"Notice: dependencies not met for plugin '%s', not building..." % plugin) + # also clear out locally built target + if os.path.exists('plugins/input/%s.input' % plugin): + os.unlink('plugins/input/%s.input' % plugin) create_uninstall_target(env, env['MAPNIK_LIB_DIR_DEST'], False) create_uninstall_target(env, env['MAPNIK_INPUT_PLUGINS_DEST'] , False)