summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/Util/keycap/Makefile
blob: 0b567a010d9ac2e6647ec97f08f22f3df74bb6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LIB	=	keycap
CAPDIR	=	$(DESTDIR)/usr/share/misc
CAPPATH	=	$(CAPDIR)/keycap.pcvt
KEYCAPSRC=	keycap.src
CFLAGS	+=	-DKEYCAP_PATH=\"$(CAPPATH)\"
SRCS	=	keycap.c
MAN3	=	keycap.${MAN3EXT}
MAN5	=	keycap.${MAN5EXT}
#CLEANFILES+=	keycap.0 keycap.0

beforeinstall:
	@if [ ! -d ${DESTDIR}${LIBDIR} ]; then mkdir ${DESTDIR}${LIBDIR};fi
	@${ECHO} "Saving old keycap database"
	-mv -f ${CAPPATH} ${CAPPATH}.BAK
	install -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \
	${.CURDIR}/${KEYCAPSRC} ${CAPPATH}


.include <bsd.lib.mk>