hkd/makefile
Alessandro Mauri 6691a616e3 basic xkbcommon support
everything is broken, hotkeys are recognized twice, multi key
recognition is broken and modifier keys get stuck upon pressing them, but
at least it compiles
2020-11-25 23:12:52 +01:00

27 lines
610 B
Makefile

CC ?= gcc
CFLAGS = -Wall -Werror -pedantic --std=c99 -O2
LDFLAGS = -lxkbcommon
VERSION = 0.4
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
hkd: hkd.c
debug:
gcc -Wall -O0 -g hkd.c -lxkbcommon -o hkd_debug
install: hkd
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f hkd ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/hkd
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < hkd.1 > ${DESTDIR}${MANPREFIX}/man1/hkd.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/hkd.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/hkd\
${DESTDIR}${MANPREFIX}/man1/hkd.1
clean:
rm -f *.o hkd hkd_debug