Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.inc « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d07eed7641ecb0ce23640de2df6d4818bd98c269 (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
63
64
65
66
67
68
69
70
71
info_TEXINFOS += %D%/libc.texi
%C%_libc_TEXINFOS = %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)

LIBC_CHEWOUT_FILES =

LIBC_CHAPTERS = %D%/sys.tex
LIBC_DOCBOOK_OUT_FILES = $(LIBC_CHEWOUT_FILES:.def=.xml)
$(LIBC_CHEWOUT_FILES): $(MKDOC)

%D%/libc.dvi: %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)

%D%/targetdep.tex.stamp: $(LIBC_CHAPTERS)
	$(AM_V_GEN)cat $^ > $@.tmp
	$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $(@:.stamp=)
	$(AM_V_at)touch $@
%D%/targetdep.tex: %D%/targetdep.tex.stamp; @true

%D%/libc.xml: %D%/libc.in.xml $(LIBC_CHAPTERS) $(LIBC_DOCBOOK_OUT_FILES)
	$(AM_V_at)\
	for chapter in $(LIBC_CHAPTERS); do \
	  $(TEXI2DOCBOOK) < $(srcdir)/$$chapter > %D%/`basename $${chapter%.tex}`.xml || exit 1; \
	done
	$(AM_V_GEN)xsltproc --xinclude --path $(builddir)/%D% --nonet $(srcdir)/refcontainers.xslt $< > $@.tmp
	$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@

%C%_man.stamp: %D%/libc.xml
	$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libc.xml
	$(AM_V_at)touch $@
man: %C%_man.stamp

%C%_install-man: %C%_man.stamp
	$(MKDIR_P) $(DESTDIR)$(mandir)/man3
	$(INSTALL_DATA) %D%/*.3 $(DESTDIR)$(mandir)/man3/
install-man: %C%_install-man

## The order of includes is important for two reasons:
## * The integrated documentation (chapter ordering).
## * Object overridding -- machine dir must come last.
## Do not change the order without considering the doc impact.
##
## Also keep in mind that every subdir must always be included here.  Any
## conditional loigc must live in the respective Makefile.inc files.
include %D%/argz/Makefile.inc
include %D%/stdlib/Makefile.inc
include %D%/ctype/Makefile.inc
include %D%/search/Makefile.inc
include %D%/stdio/Makefile.inc
include %D%/stdio64/Makefile.inc
include %D%/string/Makefile.inc
include %D%/signal/Makefile.inc
include %D%/time/Makefile.inc
include %D%/locale/Makefile.inc
include %D%/reent/Makefile.inc
include %D%/errno/Makefile.inc
include %D%/misc/Makefile.inc
include %D%/unix/Makefile.inc
include %D%/posix/Makefile.inc
include %D%/syscalls/Makefile.inc
include %D%/iconv/Makefile.inc
include %D%/xdr/Makefile.inc
include %D%/ssp/Makefile.inc
include %D%/sys/Makefile.inc
## NB: Machine must be last!  See comment block above.
include %D%/machine/Makefile.inc

CLEANFILES += \
	%D%/targetdep.tex \
	%D%/targetdep.tex.stamp \
	$(LIBC_CHEWOUT_FILES) \
	$(LIBC_DOCBOOK_OUT_FILES) \
	%D%/*.xml %C%_man.stamp %D%/*.3