68c2b4ec81
except `install'. Changed $() to ${}. Don't use the afterinstall target (it is only for things that must be done after the install target is built).
33 lines
869 B
Makefile
33 lines
869 B
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}
|
|
|
|
beforeinstall:
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${DIST_DIR}/tmac.m ${DESTDIR}${TMACDIR}/
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${DIST_DIR}/tmac.m ${DESTDIR}${TMACDIR}/tmac.mse
|
|
.for file in ${FILES}
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
${DIST_DIR}/mm/${file} ${DESTDIR}${TMACDIR}/mm/
|
|
.endfor
|
|
.for locale in ${LOCALE}
|
|
.if !exists(${locale}) || empty(${locale})
|
|
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
|
/dev/null ${DESTDIR}${TMACDIR}/mm/${locale}
|
|
.endif
|
|
.endfor
|
|
|
|
.include "../Makefile.cfg"
|
|
.include <bsd.prog.mk>
|