X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=Makefile.am;h=16d2f218e34eff8ceba3f77a36d6935e0d3360dc;hb=d8ae9c92197f1f2782b9decb276f6da756ce882d;hp=79908fdd7ffa8279583a8beeae8d79ea0991607e;hpb=8759822e8fdaebcaaea82571d6b084003ca5751e;p=fontconfig.git diff --git a/Makefile.am b/Makefile.am index 79908fd..16d2f21 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,6 +39,12 @@ pkgconfig_DATA = fontconfig.pc configdir=$(CONFDIR) config_DATA=fonts.dtd +if CROSS_COMPILING + RUN_FC_CACHE_TEST=false +else + RUN_FC_CACHE_TEST=test -z "$(DESTDIR)" +endif + install-data-local: $(mkinstalldirs) $(DESTDIR)$(configdir) if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ @@ -61,7 +67,16 @@ install-data-local: echo " $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf"; \ $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf; \ fi; fi; fi - if [ x$(DESTDIR) = x ]; then fc-cache/fc-cache -f -v; fi + if $(RUN_FC_CACHE_TEST); then \ + echo " fc-cache/fc-cache -f -v"; \ + fc-cache/fc-cache -f -v; \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi uninstall-local: if [ -f $(srcdir)/fonts.conf ]; then \