b6b34a5e0f
s/DISTDIR/DIST_DIR/g
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
TMACOWN?= bin
|
|
TMACGRP?= bin
|
|
TMACMODE?= 444
|
|
TMACDIR?= /usr/share/tmac
|
|
|
|
FILES= 0.MT 5.MT 4.MT ms.cov se_ms.cov
|
|
LOCALE= locale se_locale
|
|
|
|
MAN7= groff_mm.7 groff_mmse.7
|
|
MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
|
|
|
|
MANDEPEND= ${MAN7}
|
|
CLEANFILES+= ${MANDEPEND}
|
|
|
|
afterinstall:
|
|
${INSTALL} -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
|
${DIST_DIR}/tmac.m $(DESTDIR)$(TMACDIR)/tmac.m
|
|
${INSTALL} -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
|
${DIST_DIR}/tmac.m $(DESTDIR)$(TMACDIR)/tmac.mse
|
|
|
|
test -d $(DESTDIR)$(TMACDIR)/mm || mkdir $(DESTDIR)$(TMACDIR)/mm
|
|
chown $(TMACOWN).$(TMACGRP) $(DESTDIR)$(TMACDIR)/mm
|
|
chmod 755 $(DESTDIR)$(TMACDIR)/mm
|
|
|
|
for f in $(FILES); do \
|
|
$(INSTALL) -c -o $(TMACOWN) -g $(TMACGRP) -m $(TMACMODE) \
|
|
${DIST_DIR}/mm/$$f $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
done
|
|
for f in $(LOCALE); do \
|
|
test -f $(DESTDIR)$(TMACDIR)/mm/$$f || \
|
|
touch $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
chown $(TMACOWN).$(TMACGRP) $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
chmod $(TMACMODE) $(DESTDIR)$(TMACDIR)/mm/$$f; \
|
|
done
|
|
|
|
.include "../Makefile.cfg"
|
|
.include <bsd.prog.mk>
|