]> git.wh0rd.org - fontconfig.git/blame - Imakefile
Test for "ed" and "ex" -- part of update for LynxOS/PowerPC build fixes
[fontconfig.git] / Imakefile
CommitLineData
02c3d2e9 1XCOMM $XFree86: xc/lib/fontconfig/Imakefile,v 1.8 2002/11/15 09:29:35 alanh Exp $
d23a2a6d 2
24330d27
KP
3#define IHaveSubdirs
4#define PassCDebugFlags
5
6LINTSUBDIRS=src fc-cache fc-list
7
8SUBDIRS=fontconfig $(LINTSUBDIRS)
9
2eafe090
KP
10FONTCONFIG_REVISION=1
11
02c3d2e9 12#ifndef FontconfigFontsConfDir
61afb67c 13#if NothingOutsideProjectRoot
02c3d2e9 14#define FontconfigFontsConfDir $(PROJECTROOT)/etc/fonts
61afb67c 15#else
02c3d2e9 16#define FontconfigFontsConfDir /etc/fonts
24330d27 17#endif
61afb67c 18#endif
24330d27 19
02c3d2e9 20FONTCONFIGFONTSCONFDIR=FontconfigFontsConfDir
24330d27 21
61afb67c
AH
22#if NothingOutsideProjectRoot
23FONTDIRS=$(FONTDIR)
24#else
25FONTDIRS=/usr/share/fonts $(FONTDIR)
26#endif
27
2eafe090
KP
28SUBSTVARS=prefix=$(PROJECTROOT) \
29 exec_prefix=$(BINDIR) \
30 libdir=$(USRLIBDIR) \
31 includedir=$(INCROOT) \
32 PACKAGE_VERSION=$(SOFONTCONFIGREV).$(FONTCONFIG_REVISION)
33
24330d27
KP
34MakeSubdirs($(SUBDIRS))
35DependSubdirs($(SUBDIRS))
36MakeLintLibSubdirs($(LINTSUBDIRS))
37MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)
38
a6531d8c
KP
39#ifndef InstallNamedTargetBackup
40#define InstallNamedTargetBackup(step,srcname,flags,dest,dstname) @@\
41step:: srcname @@\
42 MakeDir($(DESTDIR)dest) @@\
43 MoveToBakFile($(DESTDIR)dest/dstname) @@\
44 $(INSTALL) $(INSTALLFLAGS) flags srcname $(DESTDIR)dest/dstname
45#endif /* InstallNamedTargetBackup */
46
47#ifndef InstallNonExecFileBackup
48#define InstallNonExecFileBackup(file,dest) @@\
49InstallNamedTargetBackup(install,file,$(INSTDATFLAGS),dest,file)
50#endif /* InstallNonExecFileBackup */
51
02c3d2e9
KP
52InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGFONTSCONFDIR))
53InstallNonExecFile(fonts.dtd,$(FONTCONFIGFONTSCONFDIR))
24330d27
KP
54
55all:: fonts.conf
56
57fonts.conf: fonts.conf.in
d23a2a6d 58 RemoveFile($@)
61afb67c 59 sh ./setfontdirs $(FONTDIRS)
d23a2a6d
MALF
60
61clean::
62 RemoveFile(fonts.conf)
2eafe090
KP
63
64all:: fontconfig-config.script
65
66fontconfig-config.script: fontconfig-config.in
67 RemoveFile($@)
fcd24743 68 sh config/config-subst $(SUBSTVARS) < fontconfig-config.in > $@
2eafe090
KP
69
70InstallScript(fontconfig-config,$(BINDIR))
71
72clean::
73 RemoveFile(fontconfig-config.script)
fcd24743 74
2eafe090
KP
75all:: fontconfig.pc
76
77fontconfig.pc: fontconfig.pc.in
78 RemoveFile($@)
c0d42979 79 sh config/config-subst $(SUBSTVARS) < fontconfig.pc.in > $@
2eafe090
KP
80
81InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)
82
83clean::
84 RemoveFile(fontconfig.pc)
85