From 6bfd2e9a75bf562996111d631bc1712b3e5dc9dd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 2 Apr 2014 10:58:30 +0200 Subject: [PATCH] makedep: Add phony install targets for fonts also for the ttf case. --- tools/makedep.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/makedep.c b/tools/makedep.c index d8788692ac7..3be431ad671 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -1663,6 +1663,7 @@ static struct strarray output_sources(void) output( "%s: %s\n", ttf_file, source->filename ); output( "\t%s -script %s %s $@\n", fontforge, top_dir_path( "fonts/genttf.ff" ), source->filename ); + if (!(source->flags & FLAG_SFD_FONTS)) output( "all: %s\n", ttf_file ); } if (source->flags & FLAG_INSTALL) { @@ -1687,13 +1688,14 @@ static struct strarray output_sources(void) output( "\t$(INSTALL_DATA) %s $(DESTDIR)$(fontdir)/%s\n", font, font ); output( "uninstall::\n" ); output( "\t$(RM) $(DESTDIR)$(fontdir)/%s\n", font ); - strarray_add_uniq( &phony_targets, "install" ); - strarray_add_uniq( &phony_targets, "install-lib" ); - strarray_add_uniq( &phony_targets, "uninstall" ); } } - else output( "all: %s\n", ttf_file ); - + if (source->flags & (FLAG_INSTALL | FLAG_SFD_FONTS)) + { + strarray_add_uniq( &phony_targets, "install" ); + strarray_add_uniq( &phony_targets, "install-lib" ); + strarray_add_uniq( &phony_targets, "uninstall" ); + } continue; /* no dependencies */ } else if (!strcmp( ext, "svg" )) /* svg file */