]>
Commit | Line | Data |
---|---|---|
b219ac6b KP |
1 | DOC_MODULE = fontconfig |
2 | DOC2HTML = docbook2html | |
3 | DOC2TXT = docbook2txt | |
4 | DOC2MAN = docbook2man | |
0da305f7 | 5 | |
b219ac6b KP |
6 | TXT = fontconfig-user.txt fontconfig-devel.txt |
7 | HTML_FILES = fontconfig-user.html | |
8 | HTML_DIRS = fontconfig-devel | |
9 | SGML = fontconfig-user.sgml fontconfig-devel.sgml | |
bdc0fd54 | 10 | FNCS_TMPL = func.sgml |
0da305f7 | 11 | |
22671e25 | 12 | DOC_FUNCS_FNCS=\ |
b219ac6b KP |
13 | fcatomic.fncs \ |
14 | fcblanks.fncs \ | |
22671e25 | 15 | fccharset.fncs \ |
b219ac6b KP |
16 | fcconfig.fncs \ |
17 | fcconstant.fncs \ | |
18 | fcfile.fncs \ | |
bfc2dc3a | 19 | fcfontset.fncs \ |
b219ac6b KP |
20 | fcfreetype.fncs \ |
21 | fcinit.fncs \ | |
22 | fcmatrix.fncs \ | |
bfc2dc3a KP |
23 | fcobjectset.fncs \ |
24 | fcobjecttype.fncs \ | |
b219ac6b KP |
25 | fcpattern.fncs \ |
26 | fcstring.fncs \ | |
39381776 | 27 | fcstrset.fncs \ |
b219ac6b | 28 | fcvalue.fncs |
22671e25 KP |
29 | |
30 | DOC_FUNCS_SGML=\ | |
b219ac6b KP |
31 | fcatomic.sgml \ |
32 | fcblanks.sgml \ | |
22671e25 | 33 | fccharset.sgml \ |
b219ac6b KP |
34 | fcconfig.sgml \ |
35 | fcconstant.sgml \ | |
36 | fcfile.sgml \ | |
bfc2dc3a | 37 | fcfontset.sgml \ |
b219ac6b KP |
38 | fcfreetype.sgml \ |
39 | fcinit.sgml \ | |
40 | fcmatrix.sgml \ | |
bfc2dc3a KP |
41 | fcobjectset.sgml \ |
42 | fcobjecttype.sgml \ | |
b219ac6b KP |
43 | fcpattern.sgml \ |
44 | fcstring.sgml \ | |
39381776 | 45 | fcstrset.sgml \ |
b219ac6b KP |
46 | fcvalue.sgml |
47 | ||
bdc0fd54 | 48 | man_MANS=fonts-conf.5 \ |
b219ac6b KP |
49 | FcAtomicCreate.3 FcAtomicDeleteNew.3 FcAtomicDestroy.3 FcAtomicLock.3 \ |
50 | FcAtomicNewFile.3 FcAtomicOrigFile.3 FcAtomicReplaceOrig.3 FcAtomicUnlock.3 \ | |
51 | FcBlanksAdd.3 FcBlanksCreate.3 FcBlanksDestroy.3 FcBlanksIsMember.3 \ | |
52 | FcCharSetAddChar.3 FcCharSetCopy.3 FcCharSetCount.3 FcCharSetCreate.3 \ | |
53 | FcCharSetDestroy.3 FcCharSetEqual.3 FcCharSetFirstPage.3 FcCharSetHasChar.3 \ | |
54 | FcCharSetIntersect.3 FcCharSetIntersectCount.3 FcCharSetIsSubset.3 \ | |
55 | FcCharSetNextPage.3 FcCharSetSubtract.3 FcCharSetSubtractCount.3 \ | |
56 | FcCharSetUnion.3 FcConfigAppFontAddDir.3 FcConfigAppFontAddFile.3 \ | |
57 | FcConfigAppFontClear.3 FcConfigBuildFonts.3 FcConfigCreate.3 \ | |
58 | FcConfigDestroy.3 FcConfigFilename.3 FcConfigGetBlanks.3 FcConfigGetCache.3 \ | |
59 | FcConfigGetConfigDirs.3 FcConfigGetConfigFiles.3 FcConfigGetCurrent.3 \ | |
60 | FcConfigGetFontDirs.3 FcConfigGetFonts.3 FcConfigGetRescanInverval.3 \ | |
61 | FcConfigParseAndLoad.3 FcConfigSetCurrent.3 FcConfigSetRescanInverval.3 \ | |
62 | FcConfigSubstitute.3 FcConfigSubstituteWithPat.3 FcConfigUptoDate.3 \ | |
63 | FcDefaultSubstitute.3 FcDirCacheValid.3 FcDirSave.3 FcDirScan.3 FcFileScan.3 \ | |
64 | FcFontList.3 FcFontMatch.3 FcFontRenderPrepare.3 FcFontSetAdd.3 \ | |
65 | FcFontSetCreate.3 FcFontSetDestroy.3 FcFontSort.3 FcFreeTypeCharIndex.3 \ | |
66 | FcFreeTypeCharSet.3 FcFreeTypeQuery.3 FcGetVersion.3 FcInit.3 \ | |
67 | FcInitBringUptoDate.3 FcInitLoadConfig.3 FcInitLoadConfigAndFonts.3 \ | |
68 | FcInitReinitialize.3 FcMatrixCopy.3 FcMatrixEqual.3 FcMatrixInit.3 \ | |
69 | FcMatrixMultiply.3 FcMatrixRotate.3 FcMatrixScale.3 FcMatrixShear.3 \ | |
70 | FcNameConstant.3 FcNameGetConstant.3 FcNameGetObjectType.3 FcNameParse.3 \ | |
71 | FcNameRegisterConstants.3 FcNameRegisterObjectTypes.3 FcNameUnparse.3 \ | |
72 | FcNameUnregisterConstants.3 FcNameUnregisterObjectTypes.3 FcObjectSetAdd.3 \ | |
73 | FcObjectSetBuild.3 FcObjectSetCreate.3 FcObjectSetDestroy.3 \ | |
74 | FcPatternAdd-Type.3 FcPatternAdd.3 FcPatternAddWeak.3 FcPatternBuild.3 \ | |
75 | FcPatternCreate.3 FcPatternDel.3 FcPatternDestroy.3 FcPatternEqual.3 \ | |
76 | FcPatternEqualSubset.3 FcPatternGet-Type.3 FcPatternGet.3 FcPatternHash.3 \ | |
77 | FcPatternPrint.3 FcStrBasename.3 FcStrCmpIgnoreCase.3 FcStrCopy.3 \ | |
78 | FcStrCopyFilename.3 FcStrDirname.3 FcStrListCreate.3 FcStrListDone.3 \ | |
79 | FcStrListNext.3 FcStrSetAdd.3 FcStrSetAddFilename.3 FcStrSetCreate.3 \ | |
80 | FcStrSetDel.3 FcStrSetDestroy.3 FcStrSetMember.3 FcUcs4ToUtf8.3 FcUtf16Len.3 \ | |
81 | FcUtf16ToUcs4.3 FcUtf8Len.3 FcUtf8ToUcs4.3 FcValueDestroy.3 FcValueSave.3 | |
22671e25 KP |
82 | |
83 | noinst_PROGRAMS=edit-sgml | |
84 | edit_sgml_SOURCES=edit-sgml.c | |
85 | ||
0da305f7 | 86 | DOCDIR=@DOCDIR@ |
0da305f7 | 87 | |
bdc0fd54 KP |
88 | DOC_FILES=$(TXT) $(HTML_FILES) |
89 | DOC_DIRS=$(HTML_DIRS) | |
90 | LOCAL_DOCS=$(man_MANS) $(DOC_FILES) $(DOC_DIRS) | |
91 | ||
92 | EXTRA_DIST = $(LOCAL_DOCS) $(SGML) $(DOC_FUNCS_FNCS) $(FNCS_TMPL) | |
93 | ||
22671e25 | 94 | SUFFIXES=.fncs .sgml .txt .html |
0da305f7 | 95 | |
bdc0fd54 KP |
96 | if ENABLE_DOCS |
97 | ||
22671e25 | 98 | .fncs.sgml: |
0da305f7 | 99 | $(RM) $@ |
bdc0fd54 | 100 | ./edit-sgml $(FNCS_TMPL) < $*.fncs > $*.sgml |
0da305f7 KP |
101 | |
102 | .sgml.txt: | |
103 | $(RM) $@ | |
104 | $(DOC2TXT) $*.sgml | |
105 | ||
bdc0fd54 | 106 | $(man_MANS): func.refs |
9238fc06 | 107 | |
27de1f43 | 108 | func.refs: fontconfig-devel.sgml $(DOC_FUNCS_SGML) version.sgml confdir.sgml |
b219ac6b | 109 | $(RM) func.refs |
22671e25 | 110 | $(DOC2MAN) fontconfig-devel.sgml |
b219ac6b KP |
111 | mv manpage.refs func.refs |
112 | $(RM) manpage.links | |
22671e25 | 113 | |
bdc0fd54 | 114 | $(DOC_FUNCS_SGML): edit-sgml $(FNCS_TMPL) |
22671e25 | 115 | |
27de1f43 | 116 | fonts-conf.5: fontconfig-user.sgml version.sgml confdir.sgml |
b219ac6b | 117 | $(RM) file.refs |
cc30f9ca | 118 | $(DOC2MAN) fontconfig-user.sgml |
b219ac6b KP |
119 | $(RM) manpage.refs manpage.links |
120 | ||
4484582e | 121 | all-local: $(LOCAL_DOCS) |
22671e25 | 122 | |
4484582e | 123 | clean-local: |
bdc0fd54 | 124 | $(RM) $(man_MANS) $(DOC_FILES) $(DOC_FUNCS_SGML) func.refs |
b219ac6b | 125 | $(RM) -r $(DOC_DIRS) |
9238fc06 | 126 | |
27de1f43 | 127 | fontconfig-devel: fontconfig-devel.sgml $(DOCS_FUNCS_SGML) version.sgml confdir.sgml |
b219ac6b KP |
128 | $(RM) -r fontconfig-devel |
129 | $(DOC2HTML) -o fontconfig-devel fontconfig-devel.sgml | |
22671e25 | 130 | |
27de1f43 | 131 | fontconfig-devel.txt: fontconfig-devel.sgml version.sgml confdir.sgml |
4484582e | 132 | |
27de1f43 | 133 | fontconfig-user.html: fontconfig-user.sgml version.sgml confdir.sgml |
16430105 | 134 | $(DOC2HTML) -u fontconfig-user.sgml |
22671e25 | 135 | |
27de1f43 | 136 | fontconfig-user.txt: fontconfig-user.sgml version.sgml confdir.sgml |
bdc0fd54 KP |
137 | else |
138 | all-local: | |
139 | clean-local: | |
140 | endif | |
141 | ||
142 | install-data-local: | |
b219ac6b KP |
143 | $(mkinstalldirs) $(DESTDIR)$(DOCDIR) |
144 | for i in $(DOC_FILES); do \ | |
145 | echo '-- Installing '$$i ; \ | |
146 | $(INSTALL_DATA) $$i $(DESTDIR)$(DOCDIR)/$$i; \ | |
147 | done | |
148 | for i in $(DOC_DIRS); do \ | |
149 | $(mkinstalldirs) $(DESTDIR)$(DOCDIR)/$$i ; \ | |
150 | for f in $$i/*; do \ | |
151 | echo '-- Installing '$$f ; \ | |
152 | $(INSTALL_DATA) $$f $(DESTDIR)$(DOCDIR)/$$f; \ | |
153 | done \ | |
0da305f7 | 154 | done |