1# mk - mk unix port from plan9
2# Depends on ../lib9
3
4TARG      = troff
5
6OFILES    = n1.o n2.o n3.o n4.o n5.o t6.o n6.o n7.o n8.o n9.o t10.o\
7            n10.o t11.o ni.o hytab.o suftab.o dwbinit.o mbwc.o
8MANFILES  = troff.1
9TROFFDIR  = ${PREFIX}/lib/troff
10
11include ../std.mk
12
13CFLAGS   += -DUNICODE -DTMACDIR=\"/tmac/tmac.\" -DTDEVNAME=\"utf\" -DFONTDIR=\"/font\" -DNTERMDIR=\"/term/tab.\" -DTEXHYPHENS=\"/hyphen.tex\" -DALTHYPHENS=\"/hyphen.tex\" -DDWBHOME=\"${TROFFDIR}/\"
14
15pre-uninstall:
16	@rm -rf ${DESTDIR}${TROFFDIR}
17
18post-install:
19	@mkdir -p ${DESTDIR}${TROFFDIR}
20	@cp -r tmac ${DESTDIR}${TROFFDIR}
21	@cp -r font ${DESTDIR}${TROFFDIR}
22	@cp -r term ${DESTDIR}${TROFFDIR}
23	@cp -r hyphen.tex ${DESTDIR}${TROFFDIR}
24