]> git.wh0rd.org - fontconfig.git/blame - Imakefile
add shared library support for Tru64 UNIX and IRIX (bug #14)
[fontconfig.git] / Imakefile
CommitLineData
72a76219 1XCOMM $XFree86: xc/lib/fontconfig/Imakefile,v 1.9 2002/11/21 16:53:00 keithp 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
72a76219
TL
22#ifdef DarwinArchitecture
23MACFONTDIRS = ~/Library/Fonts /Library/Fonts /Network/Library/Fonts \
24 /System/Library/Fonts
25#endif
26
61afb67c
AH
27#if NothingOutsideProjectRoot
28FONTDIRS=$(FONTDIR)
29#else
72a76219 30FONTDIRS=/usr/share/fonts $(FONTDIR) $(MACFONTDIRS)
61afb67c
AH
31#endif
32
2eafe090
KP
33SUBSTVARS=prefix=$(PROJECTROOT) \
34 exec_prefix=$(BINDIR) \
35 libdir=$(USRLIBDIR) \
36 includedir=$(INCROOT) \
37 PACKAGE_VERSION=$(SOFONTCONFIGREV).$(FONTCONFIG_REVISION)
38
24330d27
KP
39MakeSubdirs($(SUBDIRS))
40DependSubdirs($(SUBDIRS))
41MakeLintLibSubdirs($(LINTSUBDIRS))
42MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)
43
a6531d8c
KP
44#ifndef InstallNamedTargetBackup
45#define InstallNamedTargetBackup(step,srcname,flags,dest,dstname) @@\
46step:: srcname @@\
47 MakeDir($(DESTDIR)dest) @@\
48 MoveToBakFile($(DESTDIR)dest/dstname) @@\
49 $(INSTALL) $(INSTALLFLAGS) flags srcname $(DESTDIR)dest/dstname
50#endif /* InstallNamedTargetBackup */
51
52#ifndef InstallNonExecFileBackup
53#define InstallNonExecFileBackup(file,dest) @@\
54InstallNamedTargetBackup(install,file,$(INSTDATFLAGS),dest,file)
55#endif /* InstallNonExecFileBackup */
56
02c3d2e9
KP
57InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGFONTSCONFDIR))
58InstallNonExecFile(fonts.dtd,$(FONTCONFIGFONTSCONFDIR))
24330d27
KP
59
60all:: fonts.conf
61
62fonts.conf: fonts.conf.in
d23a2a6d 63 RemoveFile($@)
61afb67c 64 sh ./setfontdirs $(FONTDIRS)
d23a2a6d
MALF
65
66clean::
67 RemoveFile(fonts.conf)
2eafe090
KP
68
69all:: fontconfig-config.script
70
71fontconfig-config.script: fontconfig-config.in
72 RemoveFile($@)
fcd24743 73 sh config/config-subst $(SUBSTVARS) < fontconfig-config.in > $@
2eafe090
KP
74
75InstallScript(fontconfig-config,$(BINDIR))
76
77clean::
78 RemoveFile(fontconfig-config.script)
fcd24743 79
2eafe090
KP
80all:: fontconfig.pc
81
82fontconfig.pc: fontconfig.pc.in
83 RemoveFile($@)
c0d42979 84 sh config/config-subst $(SUBSTVARS) < fontconfig.pc.in > $@
2eafe090
KP
85
86InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)
87
88clean::
89 RemoveFile(fontconfig.pc)
90