diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-22 05:50:20 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-05 07:57:12 +0300 |
commit | fc2b4ffee0ec7697a02ae7185f1acb7927f2f115 (patch) | |
tree | ffeef100a30966fce8e55fb3b82fa1db41f0c852 /newlib/libc/iconv | |
parent | 44f6310bf93748ca1d55abcb9a2c82a432643256 (diff) |
newlib: libc: move manual into top-level build
This doesn't migrate all the docs, just the libc's manual (pdf/info).
This is to show the basic form of migrating the chew files.
For subdirs that didn't have any docs, I've stripped their settings
for clarity. If someone wanted to suddenly add docs, they can add
the corresponding Makefile.inc files easily.
Diffstat (limited to 'newlib/libc/iconv')
-rw-r--r-- | newlib/libc/iconv/Makefile.am | 28 | ||||
-rw-r--r-- | newlib/libc/iconv/Makefile.in | 30 | ||||
-rw-r--r-- | newlib/libc/iconv/Makefile.inc | 3 | ||||
-rw-r--r-- | newlib/libc/iconv/ccs/Makefile.am | 3 | ||||
-rw-r--r-- | newlib/libc/iconv/ccs/Makefile.in | 2 | ||||
-rw-r--r-- | newlib/libc/iconv/ces/Makefile.am | 3 | ||||
-rw-r--r-- | newlib/libc/iconv/ces/Makefile.in | 2 | ||||
-rw-r--r-- | newlib/libc/iconv/iconv.tex | 2 | ||||
-rw-r--r-- | newlib/libc/iconv/lib/Makefile.am | 3 | ||||
-rw-r--r-- | newlib/libc/iconv/lib/Makefile.in | 2 | ||||
-rw-r--r-- | newlib/libc/iconv/lib/Makefile.inc | 1 |
11 files changed, 16 insertions, 63 deletions
diff --git a/newlib/libc/iconv/Makefile.am b/newlib/libc/iconv/Makefile.am index 4123c7acb..835709861 100644 --- a/newlib/libc/iconv/Makefile.am +++ b/newlib/libc/iconv/Makefile.am @@ -6,28 +6,10 @@ cct_DATA=encoding.aliases AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -SUBDEFS = lib/stmp-def - include $(srcdir)/../../Makefile.shared -CHEWOUT_FILES = iconv.def -CHAPTERS = iconv.tex - -iconv.def: lib/iconv.def - cp lib/iconv.def iconv.def - -iconv.xml: lib/iconv.xml - cp lib/iconv.xml iconv.xml - -stmp-def: force - (cd lib && $(MAKE) doc) - touch $@ - -.PHONY: force -force: - -$(SUBDEFS): stmp-def - -lib/iconv.def: $(SUBDEFS); @true - -lib/stmp-def: ; @true +LIBC_CHEWOUT_FILES = +LIBC_CHAPTERS = +include ./Makefile.inc +CHEWOUT_FILES = $(LIBC_CHEWOUT_FILES) +CHAPTERS = $(LIBC_CHAPTERS) diff --git a/newlib/libc/iconv/Makefile.in b/newlib/libc/iconv/Makefile.in index 4cf69debd..3fc3c82e4 100644 --- a/newlib/libc/iconv/Makefile.in +++ b/newlib/libc/iconv/Makefile.in @@ -339,7 +339,6 @@ SUBDIRS = ces ccs lib . cctdir = $(datadir)/iconv_data cct_DATA = encoding.aliases AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -SUBDEFS = lib/stmp-def # # documentation rules @@ -350,13 +349,15 @@ DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml) DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml) CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES) -CHEWOUT_FILES = iconv.def -CHAPTERS = iconv.tex +LIBC_CHEWOUT_FILES = lib/iconv.def +LIBC_CHAPTERS = iconv.tex +CHEWOUT_FILES = $(LIBC_CHEWOUT_FILES) +CHAPTERS = $(LIBC_CHAPTERS) all: all-recursive .SUFFIXES: .SUFFIXES: .def .xml .c -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(srcdir)/./Makefile.inc $(srcdir)/lib/Makefile.inc $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -376,7 +377,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; -$(srcdir)/../../Makefile.shared $(am__empty): +$(srcdir)/../../Makefile.shared $(srcdir)/./Makefile.inc $(srcdir)/lib/Makefile.inc $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh @@ -664,25 +665,6 @@ docbook: $(DOCBOOK_OUT_FILES) ${top_srcdir}/../doc/chapter-texi2docbook.py <$(srcdir)/$${chapter%.xml}.tex >../$$chapter ; \ done -iconv.def: lib/iconv.def - cp lib/iconv.def iconv.def - -iconv.xml: lib/iconv.xml - cp lib/iconv.xml iconv.xml - -stmp-def: force - (cd lib && $(MAKE) doc) - touch $@ - -.PHONY: force -force: - -$(SUBDEFS): stmp-def - -lib/iconv.def: $(SUBDEFS); @true - -lib/stmp-def: ; @true - # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/newlib/libc/iconv/Makefile.inc b/newlib/libc/iconv/Makefile.inc new file mode 100644 index 000000000..1c331a5fa --- /dev/null +++ b/newlib/libc/iconv/Makefile.inc @@ -0,0 +1,3 @@ +LIBC_CHAPTERS += %D%/iconv.tex + +include %D%/lib/Makefile.inc diff --git a/newlib/libc/iconv/ccs/Makefile.am b/newlib/libc/iconv/ccs/Makefile.am index f87d072b8..071b75b8e 100644 --- a/newlib/libc/iconv/ccs/Makefile.am +++ b/newlib/libc/iconv/ccs/Makefile.am @@ -45,7 +45,4 @@ noinst_DATA = SUBDIRS=binary -CHEWOUT_FILES = -CHAPTERS = - include $(srcdir)/../../../Makefile.shared diff --git a/newlib/libc/iconv/ccs/Makefile.in b/newlib/libc/iconv/ccs/Makefile.in index 2d1608fb6..61398acda 100644 --- a/newlib/libc/iconv/ccs/Makefile.in +++ b/newlib/libc/iconv/ccs/Makefile.in @@ -439,8 +439,6 @@ lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES) lib_a_CFLAGS = $(AM_CFLAGS) noinst_DATA = SUBDIRS = binary -CHEWOUT_FILES = -CHAPTERS = # # documentation rules diff --git a/newlib/libc/iconv/ces/Makefile.am b/newlib/libc/iconv/ces/Makefile.am index 21a37b7b8..9f129c997 100644 --- a/newlib/libc/iconv/ces/Makefile.am +++ b/newlib/libc/iconv/ces/Makefile.am @@ -39,6 +39,3 @@ lib_a_CFLAGS = $(AM_CFLAGS) noinst_DATA = include $(srcdir)/../../../Makefile.shared - -CHEWOUT_FILES = -CHAPTERS = diff --git a/newlib/libc/iconv/ces/Makefile.in b/newlib/libc/iconv/ces/Makefile.in index 68f9ebb6a..0dc1711bd 100644 --- a/newlib/libc/iconv/ces/Makefile.in +++ b/newlib/libc/iconv/ces/Makefile.in @@ -383,8 +383,6 @@ DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml) DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml) CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES) -CHEWOUT_FILES = -CHAPTERS = all: all-am .SUFFIXES: diff --git a/newlib/libc/iconv/iconv.tex b/newlib/libc/iconv/iconv.tex index 46ced296b..42d04c0b6 100644 --- a/newlib/libc/iconv/iconv.tex +++ b/newlib/libc/iconv/iconv.tex @@ -21,7 +21,7 @@ The iconv functions declarations are in @end menu @page -@include iconv/iconv.def +@include iconv/lib/iconv.def @page @node Introduction to iconv diff --git a/newlib/libc/iconv/lib/Makefile.am b/newlib/libc/iconv/lib/Makefile.am index 4e495573a..0114b2aa3 100644 --- a/newlib/libc/iconv/lib/Makefile.am +++ b/newlib/libc/iconv/lib/Makefile.am @@ -30,6 +30,3 @@ lib_a_CFLAGS = $(AM_CFLAGS) noinst_DATA = include $(srcdir)/../../../Makefile.shared - -CHEWOUT_FILES = iconv.def -CHAPTER = diff --git a/newlib/libc/iconv/lib/Makefile.in b/newlib/libc/iconv/lib/Makefile.in index b78a21833..02217c4a5 100644 --- a/newlib/libc/iconv/lib/Makefile.in +++ b/newlib/libc/iconv/lib/Makefile.in @@ -366,8 +366,6 @@ DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml) DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml) CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES) -CHEWOUT_FILES = iconv.def -CHAPTER = all: all-am .SUFFIXES: diff --git a/newlib/libc/iconv/lib/Makefile.inc b/newlib/libc/iconv/lib/Makefile.inc new file mode 100644 index 000000000..62a2be87b --- /dev/null +++ b/newlib/libc/iconv/lib/Makefile.inc @@ -0,0 +1 @@ +LIBC_CHEWOUT_FILES += %D%/iconv.def |