home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / groff / doc / Makefile.gnu < prev    next >
Encoding:
Makefile  |  1991-04-30  |  1.3 KB  |  54 lines

  1. #Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  2. #     Written by James Clark (jjc@jclark.uucp)
  3. #
  4. #This file is part of groff.
  5. #
  6. #groff is free software; you can redistribute it and/or modify it under
  7. #the terms of the GNU General Public License as published by the Free
  8. #Software Foundation; either version 1, or (at your option) any later
  9. #version.
  10. #
  11. #groff is distributed in the hope that it will be useful, but WITHOUT ANY
  12. #WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14. #for more details.
  15. #
  16. #You should have received a copy of the GNU General Public License along
  17. #with groff; see the file LICENSE.  If not, write to the Free Software
  18. #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. TROFF=../troff/troff
  21. FFLAG=-F../ps
  22. GROPS=../ps/grops
  23. DOCS=chars.PS meref.PS meintro.PS
  24. MEMACROS=../macros/tmac.e
  25. PSMACROS=../ps/tmac.ps
  26. SOELIM=../etc/soelim
  27.  
  28. all: $(DOCS)
  29.  
  30. .SUFFIXES: .tr .me .PS .dit
  31.  
  32. .dit.PS:
  33.     $(GROPS) $(FFLAG) $< >$@
  34.  
  35. .me.dit:
  36.     $(SOELIM) $< \
  37.     | sed -e "s;@VERSION@;`cat ../VERSION`;" \
  38.     | $(TROFF) -i -Tps $(FFLAG) $(MEMACROS) $(PSMACROS) >$@
  39.  
  40. .tr.dit:
  41.     $(TROFF) -Tps $(FFLAG) $(PSMACROS) $< >$@
  42.  
  43. chars.PS: chars.dit
  44. meref.PS: meref.dit
  45. meintro.PS: meintro.dit
  46.  
  47. install:
  48.     
  49. clean:
  50.     -rm -f *.PS *.dit core
  51.  
  52. distclean: clean
  53. realclean: distclean
  54.