/contrib/groff/contrib/mm/Makefile.sim

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 66 lines · 55 code · 11 blank · 0 comment · 0 complexity · 3fc7d0d14ea584b66f40f9f5e8b70b89 MD5 · raw file

  1. #
  2. # $Id: Makefile.sim,v 2.3 2002/05/22 06:26:12 jhaegg Exp $
  3. #
  4. # To install mgm separately as gm.tmac:
  5. # make -f Makefile.sub tmacdir=/usr/local/lib/groff/tmac srcdir=. \
  6. # INSTALL_DATA='install -m 644' tmac_m=gm install
  7. #
  8. # or as m.tmac:
  9. #
  10. # tmacdir is the destination for your groff/tmac-directory, srcdir is
  11. # this directory and INSTALL_DATA is the command to install a file with.
  12. # If you dont have 'install': use 'cp'.
  13. # change this to whatever you like
  14. tmacdir=/usr/local/lib/groff/tmac
  15. #tmac_m = gm
  16. tmac_m = m
  17. indexdir = xx
  18. install = install -m 644
  19. # Do not change anything below this line
  20. srcdir = .
  21. version = 2.8
  22. mdate = 2002-05-11
  23. .SUFFIXES: .n .man
  24. all:
  25. install: groff_mm.n groff_mmse.n
  26. $(MAKE) -f Makefile.sub tmacdir=$(tmacdir) srcdir=$(srcdir) \
  27. INSTALL_DATA='$(install)' tmac_m=$(tmac_m) install
  28. uninstall: groff_mm.n groff_mmse.n
  29. $(MAKE) -f Makefile.sub tmacdir=$(tmacdir) srcdir=$(srcdir) \
  30. INSTALL_DATA='$(install)' tmac_m=$(tmac_m) uninstall_sub
  31. .man.n:
  32. @echo Making $@ from $<
  33. @-rm -f $@
  34. @sed -e "s|@HYPHENFILE@|$(hyphenfile)|g" \
  35. -e "s|@FONTDIR@|$(fontdir)|g" \
  36. -e "s|@FONTPATH@|$(fontpath)|g" \
  37. -e "s|@MACRODIR@|$(tmacdir)|g" \
  38. -e "s|@MACROPATH@|$(tmacpath)|g" \
  39. -e "s|@DEVICE@|$(DEVICE)|g" \
  40. -e "s|@DEFAULT_INDEX@|$(indexdir)/$(indexname)|g" \
  41. -e "s|@DEFAULT_INDEX_NAME@|$(indexname)|g" \
  42. -e "s|@INDEX_SUFFIX@|$(indexext)|g" \
  43. -e "s|@COMMON_WORDS_FILE@|$(common_words_file)|g" \
  44. -e "s|@MAN1EXT@|$(man1ext)|g" \
  45. -e "s|@MAN5EXT@|$(man5ext)|g" \
  46. -e "s|@MAN7EXT@|$(man7ext)|g" \
  47. -e "s|@TMAC_S@|$(tmac_s)|g" \
  48. -e "s|@TMAC_M@|$(tmac_m)|g" \
  49. -e "s|@TMAC_MDIR@|$(tmacdir)/mm|g" \
  50. -e "s|@BROKEN_SPOOLER_FLAGS@|$(BROKEN_SPOOLER_FLAGS)|g" \
  51. -e "s|@VERSION@|$(version)|g" \
  52. -e "s|@MDATE@|$(mdate)|g" \
  53. -e "s|@g@|$(g)|g" \
  54. -e "s!@G@;`echo $(g) | tr [a-z] [A-Z]`!g" \
  55. $< >$@