scons: create working uninstall target for fonts
This commit is contained in:
parent
ecb72d6cbc
commit
53685f3f99
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue