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.
15 if $(MAKEINFOTXT) $(AM_MAKEINFOTXTFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
16 -o $(@:.txt=.tmp) $<; \
19 if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
20 mv $(@:.txt=) $@; else mv $(@:.txt=.tmp) $@; fi; \
22 if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
23 rm -rf $(@:.txt=); else rm -Rf $(@:.txt=.tmp) $@; 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) $<; \
37 if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
38 mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
40 if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
41 rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; 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
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
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)