OSDN Git Service

[lfsja-git] r11.1-84 対応。
[lfsbookja/lfsja-git.git] / src / chapter08 / Makefile.am
1 ##
2 ## This is part of LFSbookja package.
3 ##
4 BOOKdir = @abs_bookdir@/chapter08
5 CHANGE_FILES = \
6         aboutdebug.ch     \
7         acl.ch            \
8         attr.ch           \
9         autoconf.ch       \
10         automake.ch       \
11         bash.ch           \
12         bc.ch             \
13         binutils.ch       \
14         bison.ch          \
15         bzip2.ch          \
16         chapter08.ch      \
17         check.ch          \
18         cleanup.ch        \
19         coreutils.ch      \
20         dbus.ch           \
21         dejagnu.ch        \
22         diffutils.ch      \
23         e2fsprogs.ch      \
24         eudev.ch          \
25         expat.ch          \
26         expect.ch         \
27         file.ch           \
28         findutils.ch      \
29         flex.ch           \
30         gawk.ch           \
31         gcc.ch            \
32         gdbm.ch           \
33         gettext.ch        \
34         glibc.ch          \
35         gmp.ch            \
36         gperf.ch          \
37         grep.ch           \
38         groff.ch          \
39         grub.ch           \
40         gzip.ch           \
41         iana-etc.ch       \
42         inetutils.ch      \
43         intltool.ch       \
44         introduction.ch   \
45         iproute2.ch       \
46         jinja2.ch         \
47         kbd.ch            \
48         kmod.ch           \
49         less.ch           \
50         libcap.ch         \
51         libelf.ch         \
52         libffi.ch         \
53         libpipeline.ch    \
54         libtool.ch        \
55         m4.ch             \
56         make.ch           \
57         man-db.ch         \
58         man-pages.ch      \
59         markupsafe.ch     \
60         meson.ch          \
61         mpc.ch            \
62         mpfr.ch           \
63         ncurses.ch        \
64         ninja.ch          \
65         openssl.ch        \
66         patch.ch          \
67         perl.ch           \
68         pkgconfig.ch      \
69         pkgmgt.ch         \
70         procps.ch         \
71         psmisc.ch         \
72         python.ch         \
73         readline.ch       \
74         sed.ch            \
75         shadow.ch         \
76         stripping.ch      \
77         sysklogd.ch       \
78         systemd.ch        \
79         sysvinit.ch       \
80         tar.ch            \
81         tcl.ch            \
82         texinfo.ch        \
83         util-linux.ch     \
84         vim.ch            \
85         wheel.ch          \
86         xml-parser.ch     \
87         xz.ch             \
88         zlib.ch           \
89         zstd.ch
90
91 EXTRA_DIST = $(CHANGE_FILES)
92 srcdir = @srcdir@
93 srcs = $(CHANGE_FILES:.ch=.xml)
94 DISTCLEANFILES = $(srcs)
95
96 SUFFIXES = .ch .xml
97 .ch.xml:
98         $(top_builddir)/$(CTIE) -m $@ $(BOOKdir)/$@ $(srcdir)/$*.ch >/dev/null
99
100 all: ctie $(srcs)
101
102 ctie:
103         @$(MAKE) -C $(top_builddir)/$@ $@ >/dev/null
104
105 -include Makefile.sub
106 Makefile.sub: $(top_srcdir)/bin/ctiemake.sh $(top_builddir)/config.log
107         @$(top_srcdir)/bin/ctiemake.sh $(srcs)
108
109 @MAINT@.PHONY: chbuild
110 @MAINT@chbuild: $(addprefix $(srcdir)/, $(CHANGE_FILES))
111 @MAINT@$(addprefix $(srcdir)/, $(CHANGE_FILES)):
112 @MAINT@ @if test ! -f $(@:.xml=.ch); then $(top_srcdir)/bin/buildch.perl `echo $@ | sed -e "s|^$(srcdir)|$(BOOKdir)|" -e "s|\.ch$$|.xml|"` $(@:.xml=.ch); fi