1993-07-17 04:50:40 +04:00
|
|
|
# Makefile for mm macros
|
|
|
|
|
|
|
|
# XXX -- this depends on ../include/defs.h
|
|
|
|
TMACDIR?= /usr/share/tmac
|
|
|
|
|
1993-07-15 20:37:48 +04:00
|
|
|
TMACOWN?= bin
|
|
|
|
TMACGRP?= bin
|
|
|
|
TMACMODE?= 444
|
|
|
|
|
|
|
|
FILES= 0.MT 5.MT 4.MT ms.cov se_ms.cov
|
|
|
|
LOCALE= locale se_locale
|
|
|
|
|
|
|
|
MAN7= groff_mm.0 groff_mmse.0
|
|
|
|
MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
|
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
install -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
1993-07-17 04:50:40 +04:00
|
|
|
$(.CURDIR)/tmac.m $(DESTDIR)$(TMACDIR)/tmac.m
|
1993-07-15 20:37:48 +04:00
|
|
|
install -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
1993-07-17 04:50:40 +04:00
|
|
|
$(.CURDIR)/tmac.m $(DESTDIR)$(TMACDIR)/tmac.mse
|
1993-07-15 20:37:48 +04:00
|
|
|
|
1993-07-17 04:50:40 +04:00
|
|
|
install -d -o $(TMACOWN) -g $(TMACGRP) -m 755 $(DESTDIR)$(TMACDIR)/mm
|
1993-07-15 20:37:48 +04:00
|
|
|
for f in $(FILES); do \
|
|
|
|
rm -f $(TMACDIR)/mm/$$f; \
|
|
|
|
install -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
|
|
|
$(.CURDIR)/mm/$$f $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
|
|
done
|
|
|
|
for f in $(LOCALE); do \
|
1993-07-17 04:50:40 +04:00
|
|
|
if test ! -f $(DESTDIR)$(TMACDIR)/mm/$$f; then \
|
|
|
|
install -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
|
|
|
/dev/null $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
|
|
fi; \
|
1993-07-15 20:37:48 +04:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../Makefile.cfg"
|
1993-07-18 16:46:09 +04:00
|
|
|
.include <bsd.prog.mk>
|