hkd/makefile
Alessandro Mauri 8edf0d1ce9 bump to 0.4
Changes since last version
Fixes:
- Fixed compile error on arm due to different char size
- Fixed child processes becoming zombies
- Fixed infinite loop on config files bigger than 512B
- Fixed memory allocation bug upon reloading config file
- Fixed crash upon suspending and resuming computer
- Fixed bug where last hotkey would be ignored
- Fixed crash with small parse block sizes

Additions:
- Added -h flag
- Added -d flag
- Added some keys aliases
- Added button events
- Parsed keys are now case-insensitive

Others:
- Better code readability
- Added license in source file
- Keys are now stored in keys.h
- Better errors regarding invalid config files
- Makefile respects system's $CC
2020-10-10 20:11:24 +02:00

26 lines
576 B
Makefile

CC ?= gcc
CFLAGS = -Wall -Werror -pedantic --std=c99 -O2
VERSION = 0.4
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
hkd: hkd.c
debug:
gcc -Wall -O0 -g hkd.c -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