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 14 15 # change this to whatever you like 16 tmacdir=/usr/local/lib/groff/tmac 17 #tmac_m = gm 18 tmac_m = m 19 indexdir = xx 20 install = install -m 644 21 22 # Do not change anything below this line 23 srcdir = . 24 version = 2.8 25 mdate = 2002-05-11 26 27 .SUFFIXES: .n .man 28 29 all: 30 31 32 install: groff_mm.n groff_mmse.n 33 $(MAKE) -f Makefile.sub tmacdir=$(tmacdir) srcdir=$(srcdir) \ 34 INSTALL_DATA='$(install)' tmac_m=$(tmac_m) install 35 36 uninstall: groff_mm.n groff_mmse.n 37 $(MAKE) -f Makefile.sub tmacdir=$(tmacdir) srcdir=$(srcdir) \ 38 INSTALL_DATA='$(install)' tmac_m=$(tmac_m) uninstall_sub 39 40 41 .man.n: 42 @echo Making $@ from $< 43 @-rm -f $@ 44 @sed -e "s|@HYPHENFILE@|$(hyphenfile)|g" \ 45 -e "s|@FONTDIR@|$(fontdir)|g" \ 46 -e "s|@FONTPATH@|$(fontpath)|g" \ 47 -e "s|@MACRODIR@|$(tmacdir)|g" \ 48 -e "s|@MACROPATH@|$(tmacpath)|g" \ 49 -e "s|@DEVICE@|$(DEVICE)|g" \ 50 -e "s|@DEFAULT_INDEX@|$(indexdir)/$(indexname)|g" \ 51 -e "s|@DEFAULT_INDEX_NAME@|$(indexname)|g" \ 52 -e "s|@INDEX_SUFFIX@|$(indexext)|g" \ 53 -e "s|@COMMON_WORDS_FILE@|$(common_words_file)|g" \ 54 -e "s|@MAN1EXT@|$(man1ext)|g" \ 55 -e "s|@MAN5EXT@|$(man5ext)|g" \ 56 -e "s|@MAN7EXT@|$(man7ext)|g" \ 57 -e "s|@TMAC_S@|$(tmac_s)|g" \ 58 -e "s|@TMAC_M@|$(tmac_m)|g" \ 59 -e "s|@TMAC_MDIR@|$(tmacdir)/mm|g" \ 60 -e "s|@BROKEN_SPOOLER_FLAGS@|$(BROKEN_SPOOLER_FLAGS)|g" \ 61 -e "s|@VERSION@|$(version)|g" \ 62 -e "s|@MDATE@|$(mdate)|g" \ 63 -e "s|@g@|$(g)|g" \ 64 -e "s!@G@;`echo $(g) | tr [a-z] [A-Z]`!g" \ 65 $< >$@ 66 67