2012-03-09 09:33:03 +01:00
|
|
|
# -*- encoding: utf-8 -*-
|
2003-10-27 07:30:29 +01:00
|
|
|
#
|
2008-08-13 09:30:23 +02:00
|
|
|
# fontconfig/doc/Makefile.am
|
2003-10-27 07:30:29 +01:00
|
|
|
#
|
|
|
|
# Copyright © 2003 Keith Packard
|
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
# documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
# the above copyright notice appear in all copies and that both that
|
|
|
|
# copyright notice and this permission notice appear in supporting
|
2010-11-10 22:45:42 +01:00
|
|
|
# documentation, and that the name of the author(s) not be used in
|
2003-10-27 07:30:29 +01:00
|
|
|
# advertising or publicity pertaining to distribution of the software without
|
2010-11-10 22:45:42 +01:00
|
|
|
# specific, written prior permission. The authors make no
|
2003-10-27 07:30:29 +01:00
|
|
|
# representations about the suitability of this software for any purpose. It
|
|
|
|
# is provided "as is" without express or implied warranty.
|
|
|
|
#
|
2009-03-12 21:00:08 +01:00
|
|
|
# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
2003-10-27 07:30:29 +01:00
|
|
|
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
2009-03-12 21:00:08 +01:00
|
|
|
# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
2003-10-27 07:30:29 +01:00
|
|
|
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
# PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
2012-03-09 09:33:03 +01:00
|
|
|
NULL =
|
|
|
|
EXTRA_DIST = \
|
|
|
|
$(BUILT_DOCS) \
|
|
|
|
$(DOC_FUNCS_FNCS) \
|
|
|
|
$(HTML_DIR)/* \
|
|
|
|
$(SGML_FILES) \
|
|
|
|
$(check_SCRIPTS) \
|
|
|
|
confdir.sgml.in \
|
|
|
|
func.sgml \
|
|
|
|
$(NULL)
|
2020-08-26 15:33:07 +02:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(DOC_FUNCS_SGML) \
|
|
|
|
$(NULL)
|
|
|
|
|
2019-06-21 11:55:42 +02:00
|
|
|
if USEDOCBOOK
|
|
|
|
maintainerdoccleanfiles = \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(NULL)
|
2019-06-21 11:55:42 +02:00
|
|
|
cleandocfiles = \
|
|
|
|
$(BUILT_DOCS) \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
maintainerdoccleanfiles = \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(BUILT_DOCS) \
|
2019-06-21 11:55:42 +02:00
|
|
|
$(NULL)
|
|
|
|
cleandocfiles = \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
$(DOC_FUNCS_SGML) \
|
|
|
|
$(maintainerdoccleanfiles) \
|
|
|
|
$(NULL)
|
|
|
|
CLEANFILES = \
|
|
|
|
$(cleandocfiles) \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(LOCAL_SGML_FILES) \
|
|
|
|
confdir.sgml \
|
|
|
|
func.refs \
|
|
|
|
$(NULL)
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(NULL)
|
|
|
|
SUFFIXES = \
|
|
|
|
.fncs \
|
|
|
|
.sgml \
|
|
|
|
.txt \
|
|
|
|
.html \
|
|
|
|
$(NULL)
|
|
|
|
TESTS = \
|
|
|
|
check-missing-doc \
|
|
|
|
$(NULL)
|
2013-02-02 17:01:07 +01:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
top_srcdir=${top_srcdir}; export top_srcdir; \
|
|
|
|
$(NULL)
|
|
|
|
LOG_COMPILER = sh
|
2012-03-09 09:33:03 +01:00
|
|
|
#
|
2003-03-07 20:37:16 +01:00
|
|
|
DOC2HTML = docbook2html
|
2012-03-09 09:33:03 +01:00
|
|
|
DOC2TXT = docbook2txt
|
|
|
|
DOC2MAN = docbook2man
|
|
|
|
DOC2PDF = docbook2pdf
|
|
|
|
|
|
|
|
DOC_FUNCS_FNCS = \
|
|
|
|
fcatomic.fncs \
|
|
|
|
fcblanks.fncs \
|
|
|
|
fccache.fncs \
|
|
|
|
fccharset.fncs \
|
|
|
|
fcconfig.fncs \
|
|
|
|
fcconstant.fncs \
|
|
|
|
fcdircache.fncs \
|
|
|
|
fcfile.fncs \
|
|
|
|
fcfontset.fncs \
|
|
|
|
fcformat.fncs \
|
|
|
|
fcfreetype.fncs \
|
|
|
|
fcinit.fncs \
|
|
|
|
fclangset.fncs \
|
|
|
|
fcmatrix.fncs \
|
|
|
|
fcobjectset.fncs \
|
|
|
|
fcobjecttype.fncs \
|
|
|
|
fcpattern.fncs \
|
2014-03-26 08:01:49 +01:00
|
|
|
fcrange.fncs \
|
2012-03-09 09:33:03 +01:00
|
|
|
fcstring.fncs \
|
|
|
|
fcstrset.fncs \
|
|
|
|
fcvalue.fncs \
|
2014-07-25 23:59:26 +02:00
|
|
|
fcweight.fncs \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(NULL)
|
2012-06-11 11:39:37 +02:00
|
|
|
SGML_FILES = \
|
|
|
|
fontconfig-user.sgml \
|
|
|
|
fontconfig-devel.sgml \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(NULL)
|
|
|
|
LOCAL_SGML_FILES = \
|
|
|
|
local-fontconfig-user.sgml \
|
|
|
|
local-fontconfig-devel.sgml \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DOC_FUNCS_SGML = $(DOC_FUNCS_FNCS:.fncs=.sgml)
|
|
|
|
BUILT_DOCS = \
|
|
|
|
$(HTML_FILES) \
|
|
|
|
$(PDF_FILES) \
|
|
|
|
$(TXT_FILES) \
|
|
|
|
$(man3_MANS) \
|
|
|
|
$(man5_MANS) \
|
|
|
|
$(NULL)
|
|
|
|
DOCS_DEPS = \
|
|
|
|
$(DOC_FUNCS_SGML) \
|
|
|
|
confdir.sgml \
|
|
|
|
version.sgml \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
TXT_FILES = $(SGML_FILES:.sgml=.txt)
|
|
|
|
PDF_FILES = $(SGML_FILES:.sgml=.pdf)
|
|
|
|
HTML_FILES = \
|
|
|
|
fontconfig-user.html \
|
|
|
|
$(NULL)
|
2003-10-27 11:44:13 +01:00
|
|
|
HTML_DIR = fontconfig-devel
|
2012-03-09 09:33:03 +01:00
|
|
|
#
|
|
|
|
noinst_PROGRAMS = \
|
|
|
|
$(NULL)
|
2020-08-26 15:33:07 +02:00
|
|
|
noinst_SCRIPTS = \
|
|
|
|
edit-sgml.py \
|
2012-03-09 09:33:03 +01:00
|
|
|
$(NULL)
|
2020-08-26 15:33:07 +02:00
|
|
|
##
|
2012-03-09 09:33:03 +01:00
|
|
|
check_SCRIPTS = \
|
|
|
|
check-missing-doc \
|
|
|
|
$(NULL)
|
|
|
|
#
|
|
|
|
man3_MANS = \
|
|
|
|
$(DOCMAN3) \
|
|
|
|
$(NULL)
|
|
|
|
man5_MANS = \
|
|
|
|
fonts-conf.5 \
|
|
|
|
$(NULL)
|
|
|
|
#
|
|
|
|
doc_DATA = \
|
|
|
|
$(TXT_FILES) \
|
|
|
|
$(PDF_FILES) \
|
|
|
|
$(HTML_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
#
|
|
|
|
htmldocdir = $(docdir)/$(HTML_DIR)
|
|
|
|
htmldoc_DATA = \
|
|
|
|
$(NULL)
|
2003-03-01 04:06:37 +01:00
|
|
|
|
2003-06-17 20:28:20 +02:00
|
|
|
if USEDOCBOOK
|
2012-03-09 09:33:03 +01:00
|
|
|
BUILT_SOURCES += \
|
|
|
|
$(LOCAL_SGML_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
htmldoc_DATA += $(HTML_DIR)/*
|
|
|
|
|
|
|
|
##
|
2012-03-16 15:18:23 +01:00
|
|
|
.fncs.sgml:
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
2020-08-26 15:33:07 +02:00
|
|
|
$(PYTHON) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml '$(srcdir)/$*.fncs' $*.sgml
|
2012-03-16 15:18:23 +01:00
|
|
|
.sgml.txt:
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
|
|
|
$(DOC2TXT) $*.sgml
|
2012-03-16 15:18:23 +01:00
|
|
|
.sgml.pdf:
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
|
|
|
$(DOC2PDF) $*.sgml
|
2012-03-16 15:18:23 +01:00
|
|
|
.sgml.html:
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
|
|
|
$(DOC2HTML) -u $*.sgml > $@
|
2012-03-09 09:33:03 +01:00
|
|
|
##
|
2003-10-27 11:44:13 +01:00
|
|
|
fonts-conf.5: local-fontconfig-user.sgml version.sgml confdir.sgml
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
|
|
|
$(DOC2MAN) local-fontconfig-user.sgml && \
|
2012-03-16 03:55:30 +01:00
|
|
|
$(RM) manpage.*
|
2012-03-09 09:33:03 +01:00
|
|
|
##
|
|
|
|
$(man3_MANS): func.refs
|
|
|
|
func.refs: local-fontconfig-devel.sgml $(DOCS_DEPS)
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) $@; \
|
|
|
|
$(DOC2MAN) -o devel-man local-fontconfig-devel.sgml && \
|
2012-03-09 09:33:03 +01:00
|
|
|
mv devel-man/manpage.refs func.refs && \
|
|
|
|
mv devel-man/*.3 . && \
|
2012-03-16 03:55:30 +01:00
|
|
|
$(RM) devel-man/manpage.* && \
|
2012-11-30 12:10:30 +01:00
|
|
|
rmdir devel-man || rm $@ || :
|
2012-03-09 09:33:03 +01:00
|
|
|
confdir.sgml: $(srcdir)/confdir.sgml.in
|
2020-07-02 06:55:04 +02:00
|
|
|
$(AM_V_GEN) sed -e 's,@BASECONFIGDIR\@,${BASECONFIGDIR},' $(srcdir)/$@.in | awk '{if (NR > 1) printf("\n"); printf("%s", $$0);}' > $@
|
2012-03-09 09:33:03 +01:00
|
|
|
##
|
2020-08-26 15:33:07 +02:00
|
|
|
$(DOC_FUNCS_SGML): $(DOC_FUNCS_FNCS) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml
|
2012-03-16 15:18:23 +01:00
|
|
|
$(TXT_FILES): $(DOCS_DEPS)
|
|
|
|
$(PDF_FILES): $(DOCS_DEPS)
|
|
|
|
$(HTML_FILES): $(DOCS_DEPS)
|
2006-12-02 23:18:11 +01:00
|
|
|
$(HTML_DIR)/*: $(HTML_DIR)
|
2012-03-09 09:33:03 +01:00
|
|
|
$(HTML_DIR): local-fontconfig-devel.sgml $(DOCS_DEPS)
|
2012-03-16 08:29:53 +01:00
|
|
|
$(AM_V_GEN) $(RM) -r $@; \
|
|
|
|
$(DOC2HTML) -V '%use-id-as-filename%' -o $@ local-fontconfig-devel.sgml
|
2012-03-09 09:33:03 +01:00
|
|
|
local-fontconfig-user.sgml: $(srcdir)/fontconfig-user.sgml
|
2012-06-11 11:39:37 +02:00
|
|
|
$(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-user.sgml $@; \
|
2012-06-12 04:02:03 +02:00
|
|
|
[ ! -f $(builddir)/fontconfig-user.sgml ] && cp -a $(srcdir)/fontconfig-user.sgml $(builddir)/fontconfig-user.sgml || :
|
2012-03-09 09:33:03 +01:00
|
|
|
local-fontconfig-devel.sgml: $(srcdir)/fontconfig-devel.sgml
|
2012-06-11 11:39:37 +02:00
|
|
|
$(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-devel.sgml $@; \
|
2012-06-12 04:02:03 +02:00
|
|
|
[ ! -f $(builddir)/fontconfig-devel.sgml ] && cp -a $(srcdir)/fontconfig-devel.sgml $(builddir)/fontconfig-devel.sgml || :
|
2012-03-09 09:33:03 +01:00
|
|
|
#
|
|
|
|
all-local: $(BUILT_DOCS) $(HTML_DIR)/*
|
|
|
|
clean-local:
|
2012-03-16 08:29:53 +01:00
|
|
|
$(RM) -r $(HTML_DIR) devel-man
|
2012-11-30 12:10:30 +01:00
|
|
|
[ "x$(builddir)" != "x$(srcdir)" ] && $(RM) $(builddir)/*.sgml || :
|
2013-01-03 01:07:13 +01:00
|
|
|
dist-local-check-docs-enabled:
|
|
|
|
@true
|
2003-03-07 21:03:23 +01:00
|
|
|
else
|
2012-03-09 09:33:03 +01:00
|
|
|
htmldoc_DATA += $(srcdir)/$(HTML_DIR)/*
|
2003-03-07 21:03:23 +01:00
|
|
|
all-local:
|
|
|
|
clean-local:
|
2013-01-03 01:07:13 +01:00
|
|
|
dist-local-check-docs-enabled:
|
|
|
|
@echo "*** --enable-man must be used in order to make dist"
|
|
|
|
@false
|
2003-03-07 21:03:23 +01:00
|
|
|
endif
|
2012-10-06 23:52:39 +02:00
|
|
|
|
2020-07-22 03:42:40 +02:00
|
|
|
# force doc rebuild after configure
|
2013-01-03 01:07:13 +01:00
|
|
|
dist-hook-local: dist-local-check-docs-enabled
|
|
|
|
|
2012-10-06 23:52:39 +02:00
|
|
|
-include $(top_srcdir)/git.mk
|