aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a193c6e1ee59d8048f0c8a4619eb115332f13bbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.POSIX:

PREFIX  = /usr
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR  = ${DPREFIX}/share/man

GFILE = /usr/share/groff/site-tmac/mdoc.local

all:
	@echo 'run `tup` to build the library' >&2

install:
	mkdir -p ${DPREFIX}/include ${DPREFIX}/lib ${MANDIR}/man0 ${MANDIR}/man3
	cp src/liblux.a src/liblux.so ${DPREFIX}/lib
	cp src/lux.h ${DPREFIX}/include
	cp man/*.0 ${MANDIR}/man0
	cp man/*.3 ${MANDIR}/man3
	sed -i '/^\.ds doc-str-Lb-liblux/d' ${GFILE}
	grep -v '^\.\\"' man/Lb-desc.tmac >> ${GFILE}

clean:
	rm -rf .tup/ src/*.[ao] src/*.so