4
0

Makefile.am 2.2 KB

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