2002-11-21 17:53:00 +01:00
|
|
|
XCOMM $XFree86: xc/lib/fontconfig/Imakefile,v 1.8 2002/11/15 09:29:35 alanh Exp $
|
2002-03-01 18:52:03 +01:00
|
|
|
|
2002-02-15 00:34:13 +01:00
|
|
|
#define IHaveSubdirs
|
|
|
|
#define PassCDebugFlags
|
|
|
|
|
|
|
|
LINTSUBDIRS=src fc-cache fc-list
|
|
|
|
|
|
|
|
SUBDIRS=fontconfig $(LINTSUBDIRS)
|
|
|
|
|
2002-05-23 19:06:46 +02:00
|
|
|
FONTCONFIG_REVISION=1
|
|
|
|
|
2002-11-21 17:53:00 +01:00
|
|
|
#ifndef FontconfigFontsConfDir
|
2002-11-15 10:29:35 +01:00
|
|
|
#if NothingOutsideProjectRoot
|
2002-11-21 17:53:00 +01:00
|
|
|
#define FontconfigFontsConfDir $(PROJECTROOT)/etc/fonts
|
2002-11-15 10:29:35 +01:00
|
|
|
#else
|
2002-11-21 17:53:00 +01:00
|
|
|
#define FontconfigFontsConfDir /etc/fonts
|
2002-02-15 00:34:13 +01:00
|
|
|
#endif
|
2002-11-15 10:29:35 +01:00
|
|
|
#endif
|
2002-02-15 00:34:13 +01:00
|
|
|
|
2002-11-21 17:53:00 +01:00
|
|
|
FONTCONFIGFONTSCONFDIR=FontconfigFontsConfDir
|
2002-02-15 00:34:13 +01:00
|
|
|
|
2002-11-15 10:29:35 +01:00
|
|
|
#if NothingOutsideProjectRoot
|
|
|
|
FONTDIRS=$(FONTDIR)
|
|
|
|
#else
|
|
|
|
FONTDIRS=/usr/share/fonts $(FONTDIR)
|
|
|
|
#endif
|
|
|
|
|
2002-05-23 19:06:46 +02:00
|
|
|
SUBSTVARS=prefix=$(PROJECTROOT) \
|
|
|
|
exec_prefix=$(BINDIR) \
|
|
|
|
libdir=$(USRLIBDIR) \
|
|
|
|
includedir=$(INCROOT) \
|
|
|
|
PACKAGE_VERSION=$(SOFONTCONFIGREV).$(FONTCONFIG_REVISION)
|
|
|
|
|
2002-02-15 00:34:13 +01:00
|
|
|
MakeSubdirs($(SUBDIRS))
|
|
|
|
DependSubdirs($(SUBDIRS))
|
|
|
|
MakeLintLibSubdirs($(LINTSUBDIRS))
|
|
|
|
MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)
|
|
|
|
|
2002-08-01 18:17:33 +02:00
|
|
|
#ifndef InstallNamedTargetBackup
|
|
|
|
#define InstallNamedTargetBackup(step,srcname,flags,dest,dstname) @@\
|
|
|
|
step:: srcname @@\
|
|
|
|
MakeDir($(DESTDIR)dest) @@\
|
|
|
|
MoveToBakFile($(DESTDIR)dest/dstname) @@\
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) flags srcname $(DESTDIR)dest/dstname
|
|
|
|
#endif /* InstallNamedTargetBackup */
|
|
|
|
|
|
|
|
#ifndef InstallNonExecFileBackup
|
|
|
|
#define InstallNonExecFileBackup(file,dest) @@\
|
|
|
|
InstallNamedTargetBackup(install,file,$(INSTDATFLAGS),dest,file)
|
|
|
|
#endif /* InstallNonExecFileBackup */
|
|
|
|
|
2002-11-21 17:53:00 +01:00
|
|
|
InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGFONTSCONFDIR))
|
|
|
|
InstallNonExecFile(fonts.dtd,$(FONTCONFIGFONTSCONFDIR))
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
all:: fonts.conf
|
|
|
|
|
|
|
|
fonts.conf: fonts.conf.in
|
2002-03-01 18:52:03 +01:00
|
|
|
RemoveFile($@)
|
2002-11-15 10:29:35 +01:00
|
|
|
sh ./setfontdirs $(FONTDIRS)
|
2002-03-01 18:52:03 +01:00
|
|
|
|
|
|
|
clean::
|
|
|
|
RemoveFile(fonts.conf)
|
2002-05-23 19:06:46 +02:00
|
|
|
|
|
|
|
all:: fontconfig-config.script
|
|
|
|
|
|
|
|
fontconfig-config.script: fontconfig-config.in
|
|
|
|
RemoveFile($@)
|
2002-05-25 15:52:37 +02:00
|
|
|
sh config/config-subst $(SUBSTVARS) < fontconfig-config.in > $@
|
2002-05-23 19:06:46 +02:00
|
|
|
|
|
|
|
InstallScript(fontconfig-config,$(BINDIR))
|
|
|
|
|
|
|
|
clean::
|
|
|
|
RemoveFile(fontconfig-config.script)
|
2002-05-25 15:52:37 +02:00
|
|
|
|
2002-05-23 19:06:46 +02:00
|
|
|
all:: fontconfig.pc
|
|
|
|
|
|
|
|
fontconfig.pc: fontconfig.pc.in
|
|
|
|
RemoveFile($@)
|
2002-06-08 20:46:35 +02:00
|
|
|
sh config/config-subst $(SUBSTVARS) < fontconfig.pc.in > $@
|
2002-05-23 19:06:46 +02:00
|
|
|
|
|
|
|
InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
RemoveFile(fontconfig.pc)
|
|
|
|
|