source: trunk/essentials/sys-apps/findutils/doc/Makefile.am

Last change on this file was 3170, checked in by bird, 18 years ago

findutils 4.3.2

File size: 2.2 KB
Line 
1info_TEXINFOS = find.texi
2find_TEXINFOS = perm.texi regexprops.texi
3MOSTLYCLEANFILES = find.cps
4CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz regexprops.texi
5
6MAKEINFOTXT = $(MAKEINFO) --plaintext
7
8find.txt: find.texi $(srcdir)/version.texi $(find_TEXINFOS)
9
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
26
27
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.
31find_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
44
45
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").
51findutils.texi_html_node.tar.gz: find.html
52 tar zcf $@ $<
53
54if CROSS_COMPILING
55regexprops.texi: ../gnulib/lib/regex.h
56 echo "WARNING: $? is newer than $@ but $@ cannot be rebuilt because we are cross-compiling. Continuing anyway." >&2
57else
58regexprops.texi: ../gnulib/lib/regex.h
59 cd ../lib && $(MAKE) $(AM_MAKEFLAGS) regexprops$(EXEEXT)
60 ../lib/regexprops$(EXEEXT) "Regular Expressions" > $@
61 $(RM) ../lib/regexprops$(EXEEXT)
62endif
Note: See TracBrowser for help on using the repository browser.