]> git.wh0rd.org - fontconfig.git/blobdiff - Makefile.in
Remove broken fontconfig-config script
[fontconfig.git] / Makefile.in
index d9d1014b293bf074e1ff31761e8dadb05c85e029..8643515af366431b81ccc2a57b32592b7a9411f3 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $XFree86$
+# $XFree86: xc/lib/fontconfig/Makefile.in,v 1.6 2002/05/28 03:50:23 keithp Exp $
 #
 # Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
 #
 # PERFORMANCE OF THIS SOFTWARE.
 #
 
-TOPDIR=.
+TOPDIR         = .
 
 include $(TOPDIR)/config/Makedefs
 
-DIRS          = src fc-cache fc-list
+DIRS          = fc-lang src fc-cache fc-list fontconfig
 
 all install clean::
-       for d in $(DIRS); do $(MAKE) -C $$d $@; done
+       for d in $(DIRS); do (cd $$d && $(MAKE) $@) || exit 1; done
 
+#
+# create fonts.conf file
+#
 all:: fonts.conf
 
 fonts.conf: fonts.conf.in
        rm -f $@
-       sh ./setfontdirs /usr/share/fonts $(FONTDIR)
+       sh ./setfontdirs $(FC_DEFAULT_FONTS) $(X_FONT_DIR)
 
-install:: $(CONFDIR)/fonts.conf $(CONFDIR)/fonts.dtd
+clean::
+       rm -f fonts.conf
 
-$(CONFDIR)/fonts.conf:: fonts.conf
-       if [ -f $@ ]; then
-               echo "Not overwriting existing $@"
-       else
-               $(INSTALL_DATA) fonts.conf $(CONFDIR)
-       fi
+#
+# installation directories
+#
 
-$(CONFDIR)/fonts.dtd:: fonts.dtd
-       $(INSTALL_DATA) fonts.dtd $(CONFDIR)
+install:: $(DESTDIR)$(CONFDIR) $(DESTDIR)$(BINDIR) 
+install:: $(DESTDIR)$(LIBDIR) $(DESTDIR)$(LIBDIR)/pkgconfig
 
-clean::
-       rm -f fonts.conf
+$(DESTDIR)$(CONFDIR):
+       mkdir -p $@
+
+$(DESTDIR)$(BINDIR):
+       mkdir -p $@
+
+$(DESTDIR)$(LIBDIR):
+       mkdir -p $@
+
+$(DESTDIR)$(LIBDIR)/pkgconfig:
+       mkdir -p $@
+
+#
+# install config files
+#
+install:: $(DESTDIR)$(CONFDIR)/fonts.conf \
+          $(DESTDIR)$(CONFDIR)/fonts.dtd \
+          $(DESTDIR)$(CONFDIR)/local.conf
+
+$(DESTDIR)$(CONFDIR)/fonts.conf:: fonts.conf
+       $(INSTALL_DATA) fonts.conf $(DESTDIR)$(CONFDIR)/fonts.conf
+
+$(DESTDIR)$(CONFDIR)/fonts.dtd:: fonts.dtd
+       $(INSTALL_DATA) fonts.dtd $(DESTDIR)$(CONFDIR)/fonts.dtd
+
+$(DESTDIR)$(CONFDIR)/local.conf:: local.conf
+       if [ -f $@ ]; then \
+               echo "Not overwriting existing $@"; \
+       else \
+               $(INSTALL_DATA) local.conf $(DESTDIR)$(CONFDIR)/local.conf; \
+       fi
+
+#
+# install pkgconfig control file
+#
+install:: $(DESTDIR)$(LIBDIR)/pkgconfig/fontconfig.pc
 
+$(DESTDIR)$(LIBDIR)/pkgconfig/fontconfig.pc: fontconfig.pc
+       $(INSTALL_DATA) $< $(DESTDIR)$(LIBDIR)/pkgconfig/$<