Makefile.am 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. dumpdir.texi\
  18. fdl.texi\
  19. freemanuals.texi\
  20. genfile.texi\
  21. getdate.texi\
  22. header.texi\
  23. rendition.texi\
  24. snapshot.texi\
  25. value.texi
  26. EXTRA_DIST = convtexi.pl gendocs_template
  27. DISTCLEANFILES=*.info*
  28. # The rendering level is anyone of PUBLISH, DISTRIB or PROOF.
  29. # Just call `make RENDITION=PROOF [target]' if you want PROOF rendition.
  30. RENDITION = DISTRIB
  31. MAKEINFOFLAGS=-D$(RENDITION)
  32. header.texi: $(top_srcdir)/src/tar.h
  33. sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \
  34. | expand | sed 's/\([{}]\)/@\1/g' >$@
  35. clean-local:
  36. rm -rf manual
  37. GENDOCS=gendocs.sh
  38. TEXI2DVI=texi2dvi -t '@set $(RENDITION)' -E
  39. # Make sure you set TEXINPUTS
  40. # Usual value is:
  41. # /usr/share/texmf/pdftex/plain/misc:/usr/share/texmf/pdftex/config
  42. manual:
  43. TEXINPUTS=$(srcdir):$(top_srcdir)/config:$(TEXINPUTS) \
  44. MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS)" \
  45. TEXI2DVI="$(TEXI2DVI) -t @finalout" \
  46. $(GENDOCS) tar 'GNU tar manual'