1 # Makefile for GNU tar documentation.
2 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 AUTOMAKE_OPTIONS = gnits
19 info_TEXINFOS = tar.texi
21 EXTRA_DIST = convtexi.pl getdate.texi header.texi
25 # The rendering level is anyone of PUBLISH, DISTRIB or PROOF.
26 # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition.
29 tar.info: tar.texi getdate.texi header.texi version.texi
30 @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly"
31 @echo " for expanding Texinfo macros, if it comes from a"
32 @echo " Texinfo distribution which is earlier than version 3.7."
33 cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi
35 tar.dvi: tar.texi getdate.texi header.texi version.texi
36 @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly"
37 @echo " for expanding Texinfo macros, if it comes from a"
38 @echo " Texinfo distribution which is earlier than version 3.7."
39 $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \
41 rm -f tmp-tar.sed tmp-tar.info*
42 test $(RENDITION) = DISTRIB \
43 || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/'
44 test $(RENDITION) = PUBLISH \
45 || echo >>tmp-tar.sed '/^@smallbook/d'
46 sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi
47 rm -f tmp-tar.sed tmp-tar.tmp
48 TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi
51 header.texi: $(top_srcdir)/src/tar.h
52 sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \
53 | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi