1 # Makefile.in generated by automake 1.16.4 from Makefile.am.
4 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18 if test -z '$(MAKELEVEL)'; then \
20 elif test -n '$(MAKE_HOST)'; then \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
28 am__make_running_with_option = \
29 case $${target_option-} in \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
66 *$$target_option*) has_opt=yes; break;; \
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
89 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
90 am__aclocal_m4_deps = $(top_srcdir)/version.ac \
91 $(top_srcdir)/m4/progs.m4 \
92 $(top_srcdir)/m4/ax_compare_version.m4 \
93 $(top_srcdir)/m4/ac_check_docbook_xslt.m4 \
94 $(top_srcdir)/m4/ac_check_docbook_dtd.m4 \
95 $(top_srcdir)/m4/ac_check_takaofontdir.m4 \
96 $(top_srcdir)/m4/ac_check_rev.m4 $(top_srcdir)/configure.ac
97 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
99 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
100 mkinstalldirs = $(install_sh) -d
101 CONFIG_CLEAN_FILES = userconfig.xml
102 CONFIG_CLEAN_VPATH_FILES =
103 AM_V_P = $(am__v_P_@AM_V@)
104 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
107 AM_V_GEN = $(am__v_GEN_@AM_V@)
108 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
109 am__v_GEN_0 = @echo " GEN " $@;
111 AM_V_at = $(am__v_at_@AM_V@)
112 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
117 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
118 ctags-recursive dvi-recursive html-recursive info-recursive \
119 install-data-recursive install-dvi-recursive \
120 install-exec-recursive install-html-recursive \
121 install-info-recursive install-pdf-recursive \
122 install-ps-recursive install-recursive installcheck-recursive \
123 installdirs-recursive pdf-recursive ps-recursive \
124 tags-recursive uninstall-recursive
125 am__can_run_installinfo = \
126 case $$AM_UPDATE_INFO_DIR in \
128 *) (install-info --version) >/dev/null 2>&1;; \
130 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
131 distclean-recursive maintainer-clean-recursive
132 am__recursive_targets = \
133 $(RECURSIVE_TARGETS) \
134 $(RECURSIVE_CLEAN_TARGETS) \
135 $(am__extra_recursive_targets)
136 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
138 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
139 # Read a list of newline-separated strings from the standard input,
140 # and print each of them once, without duplicates. Input order is
142 am__uniquify_input = $(AWK) '\
143 BEGIN { nonempty = 0; } \
144 { items[$$0] = 1; nonempty = 1; } \
145 END { if (nonempty) { for (i in items) print i; }; } \
147 # Make sure the list of sources is unique. This is necessary because,
148 # e.g., the same source file might be shared among _SOURCES variables
149 # for different programs/libraries.
150 am__define_uniq_tagged_files = \
151 list='$(am__tagged_files)'; \
152 unique=`for i in $$list; do \
153 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
154 done | $(am__uniquify_input)`
155 DIST_SUBDIRS = $(SUBDIRS)
156 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/userconfig.xml.in
157 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
160 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
161 sed_rest='s,^[^/]*/*,,'; \
162 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
163 sed_butlast='s,/*[^/]*$$,,'; \
164 while test -n "$$dir1"; do \
165 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
166 if test "$$first" != "."; then \
167 if test "$$first" = ".."; then \
168 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
169 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
171 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
172 if test "$$first2" = "$$first"; then \
173 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
177 dir0="$$dir0"/"$$first"; \
180 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
185 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
186 AUTOCONF = @AUTOCONF@
187 AUTOHEADER = @AUTOHEADER@
188 AUTOMAKE = @AUTOMAKE@
192 CCDEPMODE = @CCDEPMODE@
194 CPPFLAGS = @CPPFLAGS@
198 CYGPATH_W = @CYGPATH_W@
210 INSTALL_DATA = @INSTALL_DATA@
211 INSTALL_PROGRAM = @INSTALL_PROGRAM@
212 INSTALL_SCRIPT = @INSTALL_SCRIPT@
213 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
217 LTLIBOBJS = @LTLIBOBJS@
220 MAKEINFO = @MAKEINFO@
222 NOCHUNKS_NAME = @NOCHUNKS_NAME@
223 NOCHUNKS_OUTPUT = @NOCHUNKS_OUTPUT@
226 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
227 PACKAGE_NAME = @PACKAGE_NAME@
228 PACKAGE_STRING = @PACKAGE_STRING@
229 PACKAGE_TARNAME = @PACKAGE_TARNAME@
230 PACKAGE_URL = @PACKAGE_URL@
231 PACKAGE_VERSION = @PACKAGE_VERSION@
232 PATH_SEPARATOR = @PATH_SEPARATOR@
234 PDF_OUTPUT = @PDF_OUTPUT@
235 SET_MAKE = @SET_MAKE@
239 TAKAOGEXFILE = @TAKAOGEXFILE@
240 TAKAOGFILE = @TAKAOGFILE@
241 TAKAOGFONTDIR = @TAKAOGFONTDIR@
242 TAKAOMFILE = @TAKAOMFILE@
243 TAKAOMFONTDIR = @TAKAOMFONTDIR@
248 XSLTPROC = @XSLTPROC@
249 abs_bookdir = @abs_bookdir@
250 abs_builddir = @abs_builddir@
251 abs_srcdir = @abs_srcdir@
252 abs_top_builddir = @abs_top_builddir@
253 abs_top_srcdir = @abs_top_srcdir@
254 ac_ct_CC = @ac_ct_CC@
255 am__include = @am__include@
256 am__leading_dot = @am__leading_dot@
257 am__quote = @am__quote@
259 am__untar = @am__untar@
262 build_alias = @build_alias@
263 builddir = @builddir@
265 datarootdir = @datarootdir@
268 exec_prefix = @exec_prefix@
269 host_alias = @host_alias@
271 includedir = @includedir@
273 install_sh = @install_sh@
275 libexecdir = @libexecdir@
276 localedir = @localedir@
277 localstatedir = @localstatedir@
280 oldincludedir = @oldincludedir@
283 program_transform_name = @program_transform_name@
286 runstatedir = @runstatedir@
288 sharedstatedir = @sharedstatedir@
290 sysconfdir = @sysconfdir@
291 target_alias = @target_alias@
292 top_build_prefix = @top_build_prefix@
293 top_builddir = @top_builddir@
294 top_srcdir = @top_srcdir@
295 SUBDIRS = appendices chapter01 chapter02 chapter03 chapter04 chapter05 \
296 chapter06 chapter07 chapter08 chapter09 chapter10 chapter11 \
297 part3intro prologue stylesheets udev-lfs
299 EXTRA_DIST = general.ch index.ch packages.ch patches.ch pdf-fixups.ch \
300 tidy.ch make-aux-files.ch aux-file-data.ch
302 BOOKdir = @abs_bookdir@
303 srcs = general.ent index.xml packages.ent patches.ent pdf-fixups.sh \
304 process-scripts.sh aux-file-data.sh tidy.conf make-aux-files.sh \
305 git-version.sh conditional.ent
307 DISTCLEANFILES = $(srcs)
311 URLTOP = http\:\/\/lfsbookja.osdn.jp\/git-ja
313 #ALLXML := $(filter-out $(RENDERTMP)/%, \
314 # $(wildcard ./*.xml ./*/*.xml))
315 ALLXML = $(shell find . -type d -name $(RENDERTMP) -prune -o -type f -name '*.xml' -print)
320 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
322 case '$(am__configure_deps)' in \
324 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
325 && { if test -f $@; then exit 0; else break; fi; }; \
329 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
330 $(am__cd) $(top_srcdir) && \
331 $(AUTOMAKE) --gnu src/Makefile
332 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
335 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
337 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
338 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
341 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
342 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
344 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
345 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
346 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
347 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
348 $(am__aclocal_m4_deps):
349 userconfig.xml: $(top_builddir)/config.status $(srcdir)/userconfig.xml.in
350 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
352 # This directory's subdirectories are mostly independent; you can cd
353 # into them and run 'make' without going through this Makefile.
354 # To change the values of 'make' variables: instead of editing Makefiles,
355 # (1) if the variable is set in 'config.status', edit 'config.status'
356 # (which will cause the Makefiles to be regenerated when you run 'make');
357 # (2) otherwise, pass the desired values on the 'make' command line.
358 $(am__recursive_targets):
360 if $(am__make_keepgoing); then \
361 failcom='fail=yes'; \
366 target=`echo $@ | sed s/-recursive//`; \
368 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
369 *) list='$(SUBDIRS)' ;; \
371 for subdir in $$list; do \
372 echo "Making $$target in $$subdir"; \
373 if test "$$subdir" = "."; then \
375 local_target="$$target-am"; \
377 local_target="$$target"; \
379 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
382 if test "$$dot_seen" = "no"; then \
383 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
386 ID: $(am__tagged_files)
387 $(am__define_uniq_tagged_files); mkid -fID $$unique
391 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
394 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
395 include_option=--etags-include; \
398 include_option=--include; \
401 list='$(SUBDIRS)'; for subdir in $$list; do \
402 if test "$$subdir" = .; then :; else \
403 test ! -f $$subdir/TAGS || \
404 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
407 $(am__define_uniq_tagged_files); \
409 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
410 test -n "$$unique" || unique=$$empty_fix; \
411 if test $$# -gt 0; then \
412 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
415 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
419 ctags: ctags-recursive
422 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
423 $(am__define_uniq_tagged_files); \
424 test -z "$(CTAGS_ARGS)$$unique" \
425 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
429 here=`$(am__cd) $(top_builddir) && pwd` \
430 && $(am__cd) $(top_srcdir) \
431 && gtags -i $(GTAGS_ARGS) "$$here"
432 cscopelist: cscopelist-recursive
434 cscopelist-am: $(am__tagged_files)
435 list='$(am__tagged_files)'; \
436 case "$(srcdir)" in \
437 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
438 *) sdir=$(subdir)/$(srcdir) ;; \
440 for i in $$list; do \
441 if test -f "$$i"; then \
442 echo "$(subdir)/$$i"; \
446 done >> $(top_builddir)/cscope.files
449 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
450 distdir: $(BUILT_SOURCES)
451 $(MAKE) $(AM_MAKEFLAGS) distdir-am
453 distdir-am: $(DISTFILES)
454 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
455 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
456 list='$(DISTFILES)'; \
457 dist_files=`for file in $$list; do echo $$file; done | \
458 sed -e "s|^$$srcdirstrip/||;t" \
459 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
460 case $$dist_files in \
461 */*) $(MKDIR_P) `echo "$$dist_files" | \
462 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
465 for file in $$dist_files; do \
466 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
467 if test -d $$d/$$file; then \
468 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
469 if test -d "$(distdir)/$$file"; then \
470 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
472 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
473 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
474 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
476 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
478 test -f "$(distdir)/$$file" \
479 || cp -p $$d/$$file "$(distdir)/$$file" \
483 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
484 if test "$$subdir" = .; then :; else \
486 || test -d "$(distdir)/$$subdir" \
487 || $(MKDIR_P) "$(distdir)/$$subdir" \
489 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
491 new_distdir=$$reldir; \
492 dir1=$$subdir; dir2="$(top_distdir)"; \
494 new_top_distdir=$$reldir; \
495 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
496 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
497 ($(am__cd) $$subdir && \
498 $(MAKE) $(AM_MAKEFLAGS) \
499 top_distdir="$$new_top_distdir" \
500 distdir="$$new_distdir" \
501 am__remove_distdir=: \
502 am__skip_length_check=: \
503 am__skip_mode_fix=: \
509 check: check-recursive
511 installdirs: installdirs-recursive
513 install: install-recursive
514 install-exec: install-exec-recursive
515 install-data: install-data-recursive
516 uninstall: uninstall-recursive
519 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
521 installcheck: installcheck-recursive
523 if test -z '$(STRIP)'; then \
524 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
525 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
528 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
529 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
530 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
537 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
538 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
539 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
541 maintainer-clean-generic:
542 @echo "This command is intended for maintainers to use"
543 @echo "it deletes files that may require special tools to rebuild."
544 clean: clean-recursive
546 clean-am: clean-generic mostlyclean-am
548 distclean: distclean-recursive
550 distclean-am: clean-am distclean-generic distclean-tags
566 install-dvi: install-dvi-recursive
572 install-html: install-html-recursive
576 install-info: install-info-recursive
582 install-pdf: install-pdf-recursive
586 install-ps: install-ps-recursive
592 maintainer-clean: maintainer-clean-recursive
594 maintainer-clean-am: distclean-am maintainer-clean-generic
596 mostlyclean: mostlyclean-recursive
598 mostlyclean-am: mostlyclean-generic
610 .MAKE: $(am__recursive_targets) install-am install-strip
612 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
613 check-am clean clean-generic cscopelist-am ctags ctags-am \
614 distclean distclean-generic distclean-tags distdir dvi dvi-am \
615 html html-am info info-am install install-am install-data \
616 install-data-am install-dvi install-dvi-am install-exec \
617 install-exec-am install-html install-html-am install-info \
618 install-info-am install-man install-pdf install-pdf-am \
619 install-ps install-ps-am install-strip installcheck \
620 installcheck-am installdirs installdirs-am maintainer-clean \
621 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
622 pdf-am ps ps-am tags tags-am uninstall uninstall-am
627 all: ctie $(srcs) stylesheets _bootscripts scripts udev-lfs book
630 @$(MAKE) -C $(top_builddir)/$@ $@ >/dev/null
632 general.ent: $(BOOKdir)/general.ent $(srcdir)/general.ch
633 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
634 index.xml: $(BOOKdir)/index.xml $(srcdir)/index.ch
635 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
636 packages.ent: $(BOOKdir)/packages.ent $(srcdir)/packages.ch
637 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
638 patches.ent: $(BOOKdir)/patches.ent $(srcdir)/patches.ch
639 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
640 tidy.conf: $(BOOKdir)/tidy.conf $(srcdir)/tidy.ch
641 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
644 scripts: process-scripts.sh aux-file-data.sh make-aux-files.sh pdf-fixups.sh git-version.sh
646 process-scripts.sh: $(BOOKdir)/process-scripts.sh
648 aux-file-data.sh: $(BOOKdir)/aux-file-data.sh $(srcdir)/aux-file-data.ch
649 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
651 # sed -i '/.\/make-aux-files.sh/d' $@
652 make-aux-files.sh: $(BOOKdir)/make-aux-files.sh $(srcdir)/make-aux-files.ch
653 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
655 pdf-fixups.sh: $(BOOKdir)/pdf-fixups.sh $(srcdir)/pdf-fixups.ch
656 $(top_builddir)/$(CTIE) -m $@ $^ >/dev/null
657 git-version.sh: $(BOOKdir)/git-version.sh
658 sed -e "s|version\.ent|$(abs_builddir)/version\.ent|g" \
659 -e "/^full_date/afull_date=\"\$$year/\$$month_digit/\$$day\"" $^ > $@
660 conditional.ent: $(BOOKdir)/conditional.ent
664 $(MKDIR_P) stylesheets
665 cp -R $(BOOKdir)/stylesheets/* stylesheets
667 _bootscripts: $(ALLXML)
668 $(MKDIR_P) bootscripts
669 cp -pR $(BOOKdir)/bootscripts/* bootscripts
673 # cp -R $(BOOKdir)/udev-lfs/* udev-lfs
675 book: validate profile-html
676 @echo "Generating chunked XHTML files at $(BASEDIR)/ ..."
677 $(XSLTPROC) --nonet \
678 --stringparam chunk.quietly $(CHUNK_QUIET) \
679 --stringparam rootid "$(ROOT_ID)" \
680 --stringparam base.dir $(BASEDIR)/ \
681 stylesheets/lfs-chunked.xsl \
682 $(RENDERTMP)/lfs-html.xml
684 @echo "Copying CSS code and images..."
685 $(MKDIR_P) $(BASEDIR)/stylesheets
686 cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
687 sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
689 $(MKDIR_P) $(BASEDIR)/images
690 cp -p $(BOOKdir)/images/*.png $(BASEDIR)/images
692 @echo "Running Tidy and obfuscate.sh..."
693 for filename in `find $(BASEDIR) -name "*.html"`; do \
694 $(TIDY) -config tidy.conf $$filename; \
696 ${SHELL} $(BOOKdir)/obfuscate.sh $$filename; \
697 sed -e "s@text/html@application/xhtml+xml@g" \
701 # $(MAKE) --no-print-directory $(BASEDIR)/wget-list $(BASEDIR)/md5sums
702 $(MAKE) --no-print-directory wget-list md5sums
704 @TXT@nochunks: validate profile-html
705 @TXT@ @echo "Generating non chunked XHTML file..."
706 @TXT@ $(XSLTPROC) --nonet \
707 @TXT@ -stringparam rootid "$(ROOT_ID)" \
708 @TXT@ --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
709 @TXT@ stylesheets/lfs-nochunks.xsl \
710 @TXT@ $(RENDERTMP)/lfs-full.xml
711 @TXT@# $(RENDERTMP)/lfs-html2.xml
713 @TXT@ @echo "Running Tidy..."
714 @TXT@ $(TIDY) -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
715 @TXT@ @echo "Running obfuscate.sh..."
716 @TXT@ ${SHELL} $(BOOKdir)/obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
717 @TXT@ sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
718 @TXT@ sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
719 @TXT@ sed -i -e "s@../md5sums@md5sums@" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
720 @TXT@ make $(BASEDIR)/wget-list $(BASEDIR)/md5sums
723 @TXT@ $(LYNX) -assume_charset=utf-8 -display_charset=utf-8 -width=44 -dump $(BASEDIR)/$(NOCHUNKS_OUTPUT) > ../$(NOCHUNKS_NAME).txt
724 @TXT@ sed -i -e "s@file\:///[A-Za-z/\-]+\.html@$(URLTOP)/$(NOCHUNKS_NAME)-nochunks.html@g" \
725 @TXT@ -e "s@file\://$(abs_top_builddir)@$(URLTOP)@g" ../$(NOCHUNKS_NAME).txt
727 @PDF@@TAKAO@pdf: validate userconfig.xml
728 @PDF@@TAKAO@ @echo "Generating profiled XML for PDF..."
729 @PDF@@TAKAO@ $(XSLTPROC) --nonet --stringparam profile.condition pdf \
730 @PDF@@TAKAO@ --output $(RENDERTMP)/lfs-pdf.xml stylesheets/lfs-xsl/profile.xsl \
731 @PDF@@TAKAO@ $(RENDERTMP)/lfs-full.xml
733 @PDF@@TAKAO@ @echo "Generating FO file..."
734 @PDF@@TAKAO@ $(XSLTPROC) --nonet -stringparam rootid "$(ROOT_ID)" \
735 @PDF@@TAKAO@ --output $(RENDERTMP)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
736 @PDF@@TAKAO@ $(RENDERTMP)/lfs-pdf.xml
737 @PDF@@TAKAO@ sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/lfs-pdf.fo
738 @PDF@@TAKAO@ sed -i -e 's|\.\./wget-list|wget-list|g' -e 's|\.\./md5sums|md5sums|g' $(RENDERTMP)/lfs-pdf.fo
739 @PDF@@TAKAO@ bash pdf-fixups.sh $(RENDERTMP)/lfs-pdf.fo
741 @PDF@@TAKAO@ @echo "Generating PDF file..."
742 @PDF@@TAKAO@ cp -R $(BASEDIR)/images .;
743 @PDF@@TAKAO@ $(FOP) -c userconfig.xml $(RENDERTMP)/lfs-pdf.fo ./$(PDF_OUTPUT)
745 @PDF@@TAKAO@ @echo "Copying images to destination..."
746 @PDF@@TAKAO@ $(Q)mkdir -p $(BASEDIR)/images
747 @PDF@@TAKAO@ $(Q)cp images/*.png $(BASEDIR)/images
749 @PDF@@TAKAO@userconfig.xml: $(srcdir)/userconfig.xml.in
752 @echo "Creating and cleaning $(RENDERTMP)"
753 [ -d $(RENDERTMP) ] || $(MKDIR_P) $(RENDERTMP)
754 rm -f $(RENDERTMP)/lfs-{full,html,pdf}.xml
755 rm -f $(RENDERTMP)/lfs-pdf.fo
757 validate: tmpdir version $(ALLXML)
758 @echo "Processing bootscripts..."
759 bash process-scripts.sh
761 @echo "Adjusting for revision $(REV)..."
762 $(XSLTPROC) --nonet \
764 --output $(RENDERTMP)/lfs-html2.xml \
765 --stringparam profile.revision $(REV) \
766 stylesheets/lfs-xsl/profile.xsl \
769 @echo "Validating the book..."
773 -o $(RENDERTMP)/lfs-full.xml \
774 $(RENDERTMP)/lfs-html2.xml
776 rm -f appendices/*.script
777 ./aux-file-data.sh $(RENDERTMP)/lfs-full.xml $(BOOKdir)
778 @echo "Validation complete."
781 @echo "Making tarballs..."
782 sh make-aux-files.sh $(BOOKdir)
784 profile-html: validate $(ALLXML)
785 @echo "Generating profiled XML for XHTML..."
786 $(XSLTPROC) --nonet --stringparam profile.condition html \
787 --output $(RENDERTMP)/lfs-html.xml stylesheets/lfs-xsl/profile.xsl \
788 $(RENDERTMP)/lfs-full.xml
790 wget-list: $(BASEDIR)/wget-list $(BASEDIR)/wget-list-$(REV)
791 $(BASEDIR)/wget-list: stylesheets/wget-list.xsl chapter03/chapter03.xml \
792 packages.ent patches.ent general.ent
793 @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
794 $(MKDIR_P) $(BASEDIR)
795 $(XSLTPROC) --xinclude --nonet \
796 --output $(BASEDIR)/wget-list \
797 $(BOOKdir)/stylesheets/wget-list.xsl \
798 $(BOOKdir)/chapter03/chapter03.xml
800 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl \
801 chapter03/chapter03.xml \
802 packages.ent patches.ent general.ent
803 $(Q)xsltproc --nonet --xinclude \
804 --stringparam profile.revision $(REV) \
805 --output $(RENDERTMP)/wget-list.xml \
806 $(BOOKdir)/stylesheets/lfs-xsl/profile.xsl \
807 $(BOOKdir)/chapter03/chapter03.xml
808 $(Q)xsltproc --xinclude --nonet \
809 --output $(BASEDIR)/wget-list-$(REV) \
810 $(BOOKdir)/stylesheets/wget-list.xsl \
811 $(RENDERTMP)/wget-list.xml
813 md5sums: $(BASEDIR)/md5sums
814 $(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.ent patches.ent $(srcdir)/general.ch
815 @echo "Generating consolidated md5sum file at $(BASEDIR)/md5sums ..."
816 $(MKDIR_P) $(BASEDIR)
817 $(XSLTPROC) --nonet --xinclude \
818 --stringparam profile.revision $(REV) \
819 --output $(RENDERTMP)/md5sum.xml \
820 $(BOOKdir)/stylesheets/lfs-xsl/profile.xsl \
821 $(BOOKdir)/chapter03/chapter03.xml
822 $(XSLTPROC) --xinclude --nonet \
823 --output $(BASEDIR)/md5sums \
824 $(BOOKdir)/stylesheets/md5sum.xsl \
825 $(RENDERTMP)/md5sum.xml
827 "s/BOOTSCRIPTS-MD5SUM/$(shell md5sum lfs-bootscripts*.tar.xz | cut -d' ' -f1)/" \
831 (cd $(BOOKdir) && sh $(abs_builddir)/git-version.sh $(REV))
833 #dump-commands: validate
834 # @echo "Dumping book commands..."
835 # $(XSLTPROC) --output $(DUMPDIR)/ \
836 # stylesheets/dump-commands.xsl $(RENDERTMP)/lfs-full.xml
838 #all: lfs nochunks pdf dump-commands
840 .PHONY : all lfs nochunks pdf profile-html tmpdir validate md5sums wget-list version
842 # Tell versions [3.59,3.63) of GNU make to not export all variables.
843 # Otherwise a system limit (for SysV at least) may be exceeded.