summaryrefslogtreecommitdiff
path: root/Imakefile
blob: a1fe947bba6cacb227a02e60bc90257cc487f7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
XCOMM $XFree86: xc/lib/fontconfig/Imakefile,v 1.3 2002/05/21 17:08:41 keithp Exp $

#define IHaveSubdirs
#define PassCDebugFlags

LINTSUBDIRS=src fc-cache fc-list

SUBDIRS=fontconfig $(LINTSUBDIRS)

FONTCONFIG_REVISION=1

#ifndef FontconfigDir
#define FontconfigDir /etc/fonts
#endif

FONTCONFIGDIR=FontconfigDir

SUBSTVARS=prefix=$(PROJECTROOT) \
	  exec_prefix=$(BINDIR) \
	  libdir=$(USRLIBDIR) \
	  includedir=$(INCROOT) \
	  PACKAGE_VERSION=$(SOFONTCONFIGREV).$(FONTCONFIG_REVISION)

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(LINTSUBDIRS))
MakeLintSubdirs($(LINTSUBDIRS),install.ln,install.ln)

InstallNonExecFileNoClobber(fonts.conf,$(FONTCONFIGDIR))
InstallNonExecFileNoClobber(fonts.dtd,$(FONTCONFIGDIR))

all:: fonts.conf

fonts.conf: fonts.conf.in
	RemoveFile($@)
	sh ./setfontdirs /usr/share/fonts $(FONTDIR)

clean::
	RemoveFile(fonts.conf)

all:: fontconfig-config.script

fontconfig-config.script: fontconfig-config.in
	RemoveFile($@)
	sh config/config-subst $(SUBSTVARS) < $< > $@

InstallScript(fontconfig-config,$(BINDIR))

clean::
	RemoveFile(fontconfig-config.script)
	
all:: fontconfig.pc

fontconfig.pc: fontconfig.pc.in
	RemoveFile($@)
	sh config/config-subst $(SUBSTVARS) < $< > $@

InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)

clean::
	RemoveFile(fontconfig.pc)