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

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

GDIR = /usr/share/groff/site-tmac

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

install:
	mkdir -p ${DPREFIX}/include ${DPREFIX}/lib \
	         ${MANDIR}/man3 ${MANDIR}/man3head \
		 ${DGDIR}
	cp src/liblux.a src/liblux.so ${DPREFIX}/lib
	cp src/lux.h ${DPREFIX}/include
	cp man/*.3 ${MANDIR}/man3
	cp man/*.3head ${MANDIR}/man3head
	@>&2 printf '\n\nIn order to ensure that manual pages render properly, run the following command:\n\n    $$ echo '"'%s'"' \\\n          >${GDIR}/mdoc.local\n' "`grep '^\.ds' man/Lb-desc.tmac`"

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