LIB = keycap
-CAPDIR = $(DESTDIR)/usr/share/misc
+CAPDIR = /usr/share/misc
CAPPATH = $(CAPDIR)/keycap.pcvt
KEYCAPSRC= keycap.src
CFLAGS += -DKEYCAP_PATH=\"$(CAPPATH)\"
#CLEANFILES+= keycap.0 keycap.0
beforeinstall:
- @if [ ! -d ${DESTDIR}${LIBDIR} ]; then mkdir ${DESTDIR}${LIBDIR};fi
+ -@if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
+ mkdir ${DESTDIR}${LIBDIR}; \
+ fi
install -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \
- ${.CURDIR}/${KEYCAPSRC} ${CAPPATH}
+ ${.CURDIR}/${KEYCAPSRC} ${DESTDIR}${CAPPATH}
.include <bsd.lib.mk>