fontconfig/Imakefile

86 lines
2.0 KiB
Plaintext
Raw Normal View History

XCOMM $XFree86: xc/lib/fontconfig/Imakefile,v 1.7 2002/08/01 16:17:33 keithp 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)
FONTCONFIG_REVISION=1
2002-02-15 00:34:13 +01:00
#ifndef FontconfigDir
#if NothingOutsideProjectRoot
#define FontconfigDir $(PROJECTROOT)/etc/fonts
#else
2002-02-15 00:34:13 +01:00
#define FontconfigDir /etc/fonts
#endif
#endif
2002-02-15 00:34:13 +01:00
FONTCONFIGDIR=FontconfigDir
#if NothingOutsideProjectRoot
FONTDIRS=$(FONTDIR)
#else
FONTDIRS=/usr/share/fonts $(FONTDIR)
#endif
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)
#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 */
InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGDIR))
InstallNonExecFile(fonts.dtd,$(FONTCONFIGDIR))
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($@)
sh ./setfontdirs $(FONTDIRS)
2002-03-01 18:52:03 +01:00
clean::
RemoveFile(fonts.conf)
all:: fontconfig-config.script
fontconfig-config.script: fontconfig-config.in
RemoveFile($@)
sh config/config-subst $(SUBSTVARS) < fontconfig-config.in > $@
InstallScript(fontconfig-config,$(BINDIR))
clean::
RemoveFile(fontconfig-config.script)
all:: fontconfig.pc
fontconfig.pc: fontconfig.pc.in
RemoveFile($@)
sh config/config-subst $(SUBSTVARS) < fontconfig.pc.in > $@
InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)
clean::
RemoveFile(fontconfig.pc)