aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-12-08 18:56:43 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-12-08 19:00:49 +0100
commita08cbea5fd3e421f62cc08ba5c62c2eea79fd640 (patch)
tree860aa4144255ef98013cce4d84ca4cb59a60931a
parent53efa80d1456037a80b2dec99460c7aa697bdae8 (diff)
Fix Makefile for AUR
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 27bd520..b976a08 100644
--- a/Makefile
+++ b/Makefile
@@ -4,20 +4,22 @@ PREFIX = /usr
DPREFIX = ${DESTDIR}${PREFIX}
MANDIR = ${DPREFIX}/share/man
-GFILE = /usr/share/groff/site-tmac/mdoc.local
+GDIR = /usr/share/groff/site-tmac
+DGDIR = ${DESTDIR}${GDIR}
all:
@echo 'run `tup` to build the library' >&2
install:
mkdir -p ${DPREFIX}/include ${DPREFIX}/lib \
- ${MANDIR}/man3 ${MANDIR}/man3head
+ ${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
- sed -i '/^\.ds doc-str-Lb-liblux/d' ${GFILE}
- grep -v '^\.\\"' man/Lb-desc.tmac >> ${GFILE}
+ sed '/^\.ds doc-str-Lb-liblux/d' ${GDIR}/mdoc.local >${DGDIR}/mdoc.local
+ grep -v '^\.\\"' man/Lb-desc.tmac >>${DGDIR}/mdoc.local
clean:
rm -rf .tup/ src/*.[ao] src/*.so