OSDN Git Service

GIT-20170514.
[clfsja/cross-lfs-ja.git] / src / final-system / Makefile.am
1 ##
2 ## This is part of CLFSja package.
3 ##
4 SUBDIRS=64 common multilib       \
5         mips  mips64  mips64-64  \
6         ppc   ppc64   ppc64-64   \
7         sparc sparc64 sparc64-64 \
8         x86   x86_64  x86_64-64
9 BOOKdir = @abs_bookdir@/final-system
10 CHANGE_FILES = \
11         mips-chapter.ch       \
12         mips64-64-chapter.ch  \
13         mips64-chapter.ch     \
14         ppc-chapter.ch        \
15         ppc64-64-chapter.ch   \
16         ppc64-chapter.ch      \
17         sparc-chapter.ch      \
18         sparc64-64-chapter.ch \
19         sparc64-chapter.ch    \
20         x86-chapter.ch        \
21         x86_64-64-chapter.ch  \
22         x86_64-chapter.ch
23
24 EXTRA_DIST = $(CHANGE_FILES)
25 srcdir = @srcdir@
26 srcs = $(CHANGE_FILES:.ch=.xml)
27
28 SUFFIXES = .ch .xml
29 .ch.xml:
30         $(top_builddir)/$(CTIE) -m $@ $(BOOKdir)/$@ $(srcdir)/$*.ch >/dev/null
31
32 all: ctie $(srcs)
33
34 ctie:
35         @$(MAKE) -C $(top_builddir)/$@ $@ >/dev/null
36
37 $(srcs): $(BOOKdir)/$@ $(srcdir)/$(@:.xml=.ch)