1 info_TEXINFOS = find.texi find-maint.texi
2 find_TEXINFOS = perm.texi getdate.texi regexprops.texi fdl.texi
3 find_maint_TEXINFOS = fdl.texi
4 MOSTLYCLEANFILES = find.cps
5 CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz
7 # To build regexprops.texi, we need to build the regexprops program and
8 # run it on the host. If we are cross compiling, we may not have a native
9 # binary. When this is the case, we use a workaround; don't delete the
10 # file for 'make clean'. This fixes Savannah bug #19658.
12 CLEANFILES += regexprops.texi regexprops-generic.texi
15 MAKEINFOTXT = $(MAKEINFO) --plaintext
17 find.txt: find.texi $(srcdir)/version.texi $(find_TEXINFOS)
19 # find.txt is a file which we need to know how to build
20 # because it gets put on the www.gnu.org website.
21 # This rule is derived from the .texi.html rule.
24 if $(MAKEINFOTXT) $(AM_MAKEINFOTXTFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
25 -o $(@:.txt=.tmp) $<; \
28 if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
29 mv $(@:.txt=) $@; else mv $(@:.txt=.tmp) $@; fi; \
31 if test ! -d $(@:.txt=.tmp) && test -d $(@:.txt=); then \
32 rm -rf $(@:.txt=); else rm -Rf $(@:.txt=.tmp) $@; fi; \
37 # find_mono.html is a file which we need to know how to build
38 # because it gets put on the www.gnu.org website.
39 # This rule is derived from the generic .texi.html rule.
40 find_mono.html: find.texi
41 rm -rf $(@:.html=.htp)
42 if $(MAKEINFOHTML) --no-split $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
43 -o $(@:.html=.htp) $<; \
46 if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
47 mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \
49 if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \
50 rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
55 # findutils.texi_html_node.tar.gz is a file which we need to know
56 # how to build because it gets put on the www.gnu.org website.
57 # This rule depends on GNU tar, but it's principally used
58 # by the maintainer, and we don't need to build the file
59 # for "make all" or "make install" (or even "make check").
60 findutils.texi_html_node.tar.gz: find.html
64 regexprops.texi regexprops-generic.texi: ../gnulib/lib/regex.h
65 echo "WARNING: $? is newer than $@ but $@ cannot be rebuilt because we are cross-compiling. Continuing anyway." >&2
67 regexprops.texi: ../gnulib/lib/regex.h ../lib/regexprops.c
68 cd ../lib && $(MAKE) $(AM_MAKEFLAGS) regexprops$(EXEEXT)
69 ../lib/regexprops$(EXEEXT) "Regular Expressions" findutils > $@
70 rm ../lib/regexprops$(EXEEXT)
71 regexprops-generic.texi: ../gnulib/lib/regex.h ../lib/regexprops.c
72 cd ../lib && $(MAKE) $(AM_MAKEFLAGS) regexprops$(EXEEXT)
73 ../lib/regexprops$(EXEEXT) "Regular Expressions" generic > $@
74 rm ../lib/regexprops$(EXEEXT)