Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Makefile for GNU tar documentation.
  2. # Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003 Free
  3. # 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)
  7. ## any later version.
  8. ## This program is distributed in the hope that it will be useful,
  9. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. ## GNU General Public License for more details.
  12. ## You should have received a copy of the GNU General Public License
  13. ## along with this program; if not, write to the Free Software Foundation,
  14. ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. info_TEXINFOS = tar.texi
  16. tar_TEXINFOS = \
  17. fdl.texi\
  18. freemanuals.texi\
  19. genfile.texi\
  20. getdate.texi\
  21. header.texi\
  22. rendition.texi\
  23. snapshot.texi\
  24. value.texi
  25. EXTRA_DIST = convtexi.pl gendocs_template
  26. DISTCLEANFILES=*.info*
  27. # The rendering level is anyone of PUBLISH, DISTRIB or PROOF.
  28. # Just call `make RENDITION=PROOF [target]' if you want PROOF rendition.
  29. RENDITION = DISTRIB
  30. MAKEINFOFLAGS=-D$(RENDITION)
  31. header.texi: $(top_srcdir)/src/tar.h
  32. sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \
  33. | expand | sed 's/\([{}]\)/@\1/g' >$@
  34. clean-local:
  35. rm -rf manual
  36. GENDOCS=gendocs.sh
  37. TEXI2DVI=texi2dvi -t '@set $(RENDITION)' -E
  38. # Make sure you set TEXINPUTS
  39. # Usual value is:
  40. # /usr/share/texmf/pdftex/plain/misc:/usr/share/texmf/pdftex/config
  41. manual:
  42. TEXINPUTS=$(srcdir):$(top_srcdir)/config:$(TEXINPUTS) \
  43. MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS)" \
  44. TEXI2DVI="$(TEXI2DVI) -t @finalout" \
  45. $(GENDOCS) tar 'GNU tar manual'