A simple on screen keyboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.8 KiB

17 years ago
# svkbd - simple virtual keyboard
# See LICENSE file for copyright and license details.
include config.mk
SRC = drw.c svkbd.c util.c
17 years ago
all: options svkbd-${LAYOUT}
17 years ago
options:
@echo svkbd build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
config.h: config.mk
17 years ago
@echo creating $@ from config.def.h
@cp config.def.h $@
svkbd-%: layout.%.h config.h ${SRC}
@echo creating layout.h from $<
@cp $< layout.h
17 years ago
@echo CC -o $@
@${CC} -o $@ ${SRC} ${LDFLAGS} ${CFLAGS}
17 years ago
clean:
@echo cleaning
@for i in svkbd-*; \
do \
if [ -x $$i ]; \
then \
rm -f $$i 2> /dev/null; \
fi \
done; true
@rm -f ${OBJ} svkbd-${VERSION}.tar.gz 2> /dev/null; true
17 years ago
dist: clean
@echo creating dist tarball
@mkdir -p svkbd-${VERSION}
@cp LICENSE Makefile README config.def.h config.mk \
${SRC} svkbd-${VERSION}
@for i in layout.*.h; \
do \
cp $$i svkbd-${VERSION}; \
done
17 years ago
@tar -cf svkbd-${VERSION}.tar svkbd-${VERSION}
@gzip svkbd-${VERSION}.tar
@rm -rf svkbd-${VERSION}
install: all
@echo installing executable files to ${DESTDIR}${PREFIX}/bin
17 years ago
@mkdir -p ${DESTDIR}${PREFIX}/bin
@for i in svkbd-*; \
do \
if [ -x $$i ]; \
then \
echo CP $$i; \
cp $$i ${DESTDIR}${PREFIX}/bin; \
chmod 755 ${DESTDIR}${PREFIX}/bin/$$i; \
fi \
done
# @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
# @mkdir -p ${DESTDIR}${MANPREFIX}/man1
# @sed "s/VERSION/${VERSION}/g" < svkbd.1 > ${DESTDIR}${MANPREFIX}/man1/svkbd.1
# @chmod 644 ${DESTDIR}${MANPREFIX}/man1/svkbd.1
17 years ago
uninstall:
@echo removing executable files from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/svkbd-*
# @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
# @rm -f ${DESTDIR}${MANPREFIX}/man1/svkbd.1
17 years ago
.PHONY: all options clean dist install uninstall