This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
svkbd/Makefile

62 lines
1.5 KiB
Makefile
Raw Normal View History

2008-07-15 16:53:38 +00:00
# svkbd - simple virtual keyboard
# See LICENSE file for copyright and license details.
include config.mk
SRC = svkbd.c
OBJ = ${SRC:.c=.o}
all: options svkbd
options:
@echo svkbd build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
2011-03-24 18:31:00 +00:00
@echo "LAYOUT = ${LAYOUT}"
2008-07-15 16:53:38 +00:00
.c.o:
@echo CC $<
2011-03-24 18:31:00 +00:00
@${CC} ${CPPFLAGS} -c ${CFLAGS} $<
2008-07-15 16:53:38 +00:00
${OBJ}: config.h config.mk
config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
svkbd: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@rm -f svkbd ${OBJ} svkbd-${VERSION}.tar.gz
dist: clean
@echo creating dist tarball
@mkdir -p svkbd-${VERSION}
@cp -R LICENSE Makefile README config.def.h config.mk \
2011-03-24 18:31:00 +00:00
${SRC} layouts svkbd-${VERSION}
2008-07-15 16:53:38 +00:00
@tar -cf svkbd-${VERSION}.tar svkbd-${VERSION}
@gzip svkbd-${VERSION}.tar
@rm -rf svkbd-${VERSION}
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f svkbd ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/svkbd
@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
2008-07-15 16:53:38 +00:00
uninstall:
@echo removing executable file 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
2008-07-15 16:53:38 +00:00
.PHONY: all options clean dist install uninstall