Support fts() in FTS_CWDFD mode. Also work around Savannah bug #18466 (with a perfor...
[findutils.git] / doc / Makefile.am
blob1621418fa26c473da1a4ab1cf69f4cce8ef92e53
1 info_TEXINFOS = find.texi
2 find_TEXINFOS = perm.texi regexprops.texi
3 MOSTLYCLEANFILES = find.cps 
4 CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz regexprops.texi
6 MAKEINFOTXT = $(MAKEINFO) --plaintext
8 find.txt: find.texi $(srcdir)/version.texi $(find_TEXINFOS)
10 # find.txt is a file which we need to know how to build 
11 # because it gets put on the www.gnu.org website.
12 # This rule is derived from the .texi.html rule.
13 .texi.txt:
14         rm -rf $(@:.txt=.tmp)
15         if $(MAKEINFOTXT) $(AM_MAKEINFOTXTFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
16          -o $(@:.txt=.tmp) $<; \
17         then \
18           rm -rf $@; \
19           if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
20             mv $(@:.txt=) $@; else mv $(@:.txt=.tmp) $@; fi; \
21         else \
22           if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
23             rm -rf $(@:.txt=); else rm -Rf $(@:.txt=.tmp) $@; fi; \
24           exit 1; \
25         fi
28 # find_mono.html is a file which we need to know how to build 
29 # because it gets put on the www.gnu.org website.
30 # This rule is derived from the generic .texi.html rule.
31 find_mono.html: find.texi
32         rm -rf $(@:.html=.htp)
33         if $(MAKEINFOHTML) --no-split $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
34          -o $(@:.html=.htp) $<; \
35         then \
36           rm -rf $@; \
37           if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
38             mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
39         else \
40           if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
41             rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
42           exit 1; \
43         fi
46 # findutils.texi_html_node.tar.gz is a file which we need to know
47 # how to build because it gets put on the www.gnu.org website.
48 # This rule depends on GNU tar, but it's principally used 
49 # by the maintainer, and we don't need to build the file 
50 # for "make all" or "make install" (or even "make check").
51 findutils.texi_html_node.tar.gz: find.html
52         tar zcf $@ $<
54 if CROSS_COMPILING
55 regexprops.texi: ../gnulib/lib/regex.h
56         echo "WARNING: $? is newer than $@ but $@ cannot be rebuilt because we are cross-compiling.   Continuing anyway." >&2
57 else
58 regexprops.texi: ../gnulib/lib/regex.h
59         cd ../lib && $(MAKE) $(AM_MAKEFLAGS) regexprops$(EXEEXT)
60         ../lib/regexprops$(EXEEXT) "Regular Expressions" > $@
61         $(RM) ../lib/regexprops$(EXEEXT)
62 endif