2 # Id: Makefile.sim,v 2.3 2002/05/22 06:26:12 jhaegg Exp
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
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'.
15 # change this to whatever you like
16 tmacdir=/usr/local/lib/groff/tmac
20 install = install -m 644
22 # Do not change anything below this line
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
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
42 @echo Making $@ from $<
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" \
64 -e "s!@G@;`echo $(g) | tr [a-z] [A-Z]`!g" \