makedep: Add phony install targets for fonts also for the ttf case.

This commit is contained in:
Alexandre Julliard 2014-04-02 10:58:30 +02:00
parent f350774c77
commit 6bfd2e9a75
1 changed files with 7 additions and 5 deletions

View File

@ -1663,6 +1663,7 @@ static struct strarray output_sources(void)
output( "%s: %s\n", ttf_file, source->filename ); output( "%s: %s\n", ttf_file, source->filename );
output( "\t%s -script %s %s $@\n", output( "\t%s -script %s %s $@\n",
fontforge, top_dir_path( "fonts/genttf.ff" ), source->filename ); 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) 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( "\t$(INSTALL_DATA) %s $(DESTDIR)$(fontdir)/%s\n", font, font );
output( "uninstall::\n" ); output( "uninstall::\n" );
output( "\t$(RM) $(DESTDIR)$(fontdir)/%s\n", font ); output( "\t$(RM) $(DESTDIR)$(fontdir)/%s\n", font );
}
}
if (source->flags & (FLAG_INSTALL | FLAG_SFD_FONTS))
{
strarray_add_uniq( &phony_targets, "install" ); strarray_add_uniq( &phony_targets, "install" );
strarray_add_uniq( &phony_targets, "install-lib" ); strarray_add_uniq( &phony_targets, "install-lib" );
strarray_add_uniq( &phony_targets, "uninstall" ); strarray_add_uniq( &phony_targets, "uninstall" );
} }
}
else output( "all: %s\n", ttf_file );
continue; /* no dependencies */ continue; /* no dependencies */
} }
else if (!strcmp( ext, "svg" )) /* svg file */ else if (!strcmp( ext, "svg" )) /* svg file */