#
# $Id$
#
-# Copyright © 2003 Keith Packard
+# Copyright © 2003 Keith Packard
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
SGML = ${FC_CACHE_SRC}/fc-cache.sgml
-INCLUDES=$(FREETYPE_CFLAGS)
+install-data-local:
+ -$(mkinstalldirs) "$(DESTDIR)$(fc_cachedir)"
-man_MANS=fc-cache.1
+uninstall-local:
+ -$(RM) -rf "$(DESTDIR)$(fc_cachedir)"
+
+INCLUDES=-I${top_srcdir} -I${top_srcdir}/src $(FREETYPE_CFLAGS)
bin_PROGRAMS=fc-cache
-EXTRA_DIST=$(SGML)
+EXTRA_DIST=fc-cache.sgml
-fc_cache_LDADD = ${top_builddir}/src/libfontconfig.la
+fc_cache_LDADD = $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) ${top_builddir}/src/libfontconfig.la
if USEDOCBOOK
-
-${man_MANS}: ${SGML}
+
+man_MANS=fc-cache.1
+
+${man_MANS}: ${SGML}
$(RM) $@
$(DOC2MAN) ${SGML}
$(RM) manpage.refs manpage.links
-
+
all-local: $(man_MANS)
-
+
clean-local:
$(RM) $(man_MANS)
-
+
else
all-local:
clean-local: