1# $NetBSD: Makefile,v 1.14 2008/10/26 14:55:17 apb Exp $ 2 3PROG= wsconsctl 4SRCS= display.c keyboard.c keysym.c map_parse.y map_scan.l \ 5 mouse.c util.c wsconsctl.c 6MAN= wsconsctl.8 7 8YHEADER= 1 9CPPFLAGS+= -I. -I${.CURDIR} 10DPSRCS+= keysym.h 11CLEANFILES+= keysym.h 12 13.include <bsd.prog.mk> 14 15# Environment for scripts executed during build. 16SCRIPT_ENV= \ 17 AWK=${TOOL_AWK:Q} \ 18 SED=${TOOL_SED:Q} 19 20keysym.h: mkkeysym.sh ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h 21 ${_MKTARGET_CREATE} 22 ${SCRIPT_ENV} ${HOST_SH} ${.CURDIR}/mkkeysym.sh \ 23 ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h > keysym.h 24