]> git.wh0rd.org - fontconfig.git/blobdiff - fc-cache/Imakefile
Make fc-cache more tolerant of missing font directories
[fontconfig.git] / fc-cache / Imakefile
index 02807231d2f406a89ad0f7b8e4ece85707b58ccc..0e3cbfce4e81faedd7204d605f88d73cb0b1ba74 100644 (file)
@@ -1,3 +1,8 @@
+#ifdef UseInstalled
+/* building outside the tree, use private defines */
+#include "../local.def"
+#endif
+
 INCLUDES=$(FREETYPE2INCLUDES) $(LIBXML2INCLUDES) -I..
 
 LOCAL_LIBRARIES=FontconfigClientLibs
@@ -10,4 +15,6 @@ ComplexProgramTarget(fc-cache)
 LinkBuildBinary(ProgramTargetName(fc-cache))
 
 install::
-       FC_DEBUG=128 $(FCCACHE) -v
+       if [ x$${DESTDIR} = x ]; then \
+               $(FCCACHE) -v -f;\
+       fi