4
0

Makefile.am 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. info_TEXINFOS = tar.texi
  16. EXTRA_DIST = convtexi.pl fdl.texi freemanuals.texi 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. $(srcdir)/tar.info: tar.texi fdl.texi freemanuals.texi getdate.texi \
  22. $(srcdir)/header.texi version.texi
  23. $(MAKEINFO) --no-split -D$(RENDITION) -I$(srcdir) tar.texi -o $@
  24. tar.dvi: tar.texi getdate.texi $(srcdir)/header.texi version.texi
  25. $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \
  26. -I$(srcdir) tar.texi
  27. rm -f tmp-tar.sed tmp-tar.info*
  28. test $(RENDITION) = DISTRIB \
  29. || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/'
  30. test $(RENDITION) = PUBLISH \
  31. || echo >>tmp-tar.sed '/^@smallbook/d'
  32. sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi
  33. rm -f tmp-tar.sed tmp-tar.tmp
  34. TEXINPUTS=$(top_srcdir)/config:$$TEXINPUTS \
  35. MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
  36. $(TEXI2DVI) tmp-tar.texi
  37. mv tmp-tar.dvi $@
  38. $(srcdir)/header.texi: $(top_srcdir)/src/tar.h
  39. sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \
  40. | expand | sed 's/\([{}]\)/@\1/g' >$@