scons: create working uninstall target for fonts

This commit is contained in:
Dane Springmeyer 2012-08-16 10:05:34 -07:00
parent ecb72d6cbc
commit 53685f3f99
2 changed files with 5 additions and 2 deletions

View file

@ -1696,7 +1696,6 @@ if not HELP_REQUESTED:
create_uninstall_target(env, env['MAPNIK_LIB_DIR_DEST'], False)
create_uninstall_target(env, env['MAPNIK_INPUT_PLUGINS_DEST'] , False)
create_uninstall_target(env, env['MAPNIK_INPUT_PLUGINS_DEST'] , False)
# before installing plugins, wipe out any previously
# installed plugins that we are no longer building

View file

@ -28,5 +28,9 @@ includes = glob.glob('*/*/*.ttf')
# grab single unifont ttf (available at http://unifoundry.com/unifont.html)
includes.extend(glob.glob('unifont*.ttf'))
target_path = env['MAPNIK_FONTS_DEST']
if 'uninstall' not in COMMAND_LINE_TARGETS and not env['SYSTEM_FONTS']:
env.Alias(target='install', source=env.Install(env['MAPNIK_FONTS_DEST'], includes))
env.Alias(target='install', source=env.Install(target_path, includes))
env['create_uninstall_target'](env, target_path)