Makefile.am 1.7 KB

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