|
|
@ -6,7 +6,7 @@ include config.mk |
|
|
|
SRC = svkbd.c
|
|
|
|
SRC = svkbd.c
|
|
|
|
LAYOUTS = en de arrows
|
|
|
|
LAYOUTS = en de arrows
|
|
|
|
|
|
|
|
|
|
|
|
all: options svkbd |
|
|
|
all: options svkbd.en |
|
|
|
|
|
|
|
|
|
|
|
options: |
|
|
|
options: |
|
|
|
@echo svkbd build options:
|
|
|
|
@echo svkbd build options:
|
|
|
@ -19,11 +19,6 @@ config.h: config.mk |
|
|
|
@echo creating $@ from config.def.h
|
|
|
|
@echo creating $@ from config.def.h
|
|
|
|
@cp config.def.h $@
|
|
|
|
@cp config.def.h $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svkbd: svkbd.en |
|
|
|
|
|
|
|
@echo CP $@
|
|
|
|
|
|
|
|
@cp $< $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svkbd.%: layout.%.h config.h ${SRC} |
|
|
|
svkbd.%: layout.%.h config.h ${SRC} |
|
|
|
@echo creating layout.h from $<
|
|
|
|
@echo creating layout.h from $<
|
|
|
|
@cp $< layout.h
|
|
|
|
@cp $< layout.h
|
|
|
@ -32,32 +27,45 @@ svkbd.%: layout.%.h config.h ${SRC} |
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: |
|
|
|
@echo cleaning
|
|
|
|
@echo cleaning
|
|
|
|
@for i in ${LAYOUTS}; do rm svkbd.$$i 2> /dev/null; done; true
|
|
|
|
@for i in ${LAYOUTS}; \
|
|
|
|
@rm -f svkbd ${OBJ} svkbd-${VERSION}.tar.gz 2> /dev/null; true
|
|
|
|
do \
|
|
|
|
|
|
|
|
rm -f svkbd.$$i 2> /dev/null; \
|
|
|
|
|
|
|
|
done; true
|
|
|
|
|
|
|
|
@rm -f ${OBJ} svkbd-${VERSION}.tar.gz 2> /dev/null; true
|
|
|
|
|
|
|
|
|
|
|
|
dist: clean |
|
|
|
dist: clean |
|
|
|
@echo creating dist tarball
|
|
|
|
@echo creating dist tarball
|
|
|
|
@mkdir -p svkbd-${VERSION}
|
|
|
|
@mkdir -p svkbd-${VERSION}
|
|
|
|
@cp LICENSE Makefile README config.def.h config.mk \
|
|
|
|
@cp LICENSE Makefile README config.def.h config.mk \
|
|
|
|
${SRC} svkbd-${VERSION}
|
|
|
|
${SRC} svkbd-${VERSION}
|
|
|
|
@for i in ${LAYOUTS}; do cp layout.$$i.h svkbd.${VERSION} || exit 1; done
|
|
|
|
@for i in ${LAYOUTS}; \
|
|
|
|
|
|
|
|
do \
|
|
|
|
|
|
|
|
cp layout.$$i.h svkbd-${VERSION}; \
|
|
|
|
|
|
|
|
done
|
|
|
|
@tar -cf svkbd-${VERSION}.tar svkbd-${VERSION}
|
|
|
|
@tar -cf svkbd-${VERSION}.tar svkbd-${VERSION}
|
|
|
|
@gzip svkbd-${VERSION}.tar
|
|
|
|
@gzip svkbd-${VERSION}.tar
|
|
|
|
@rm -rf svkbd-${VERSION}
|
|
|
|
@rm -rf svkbd-${VERSION}
|
|
|
|
|
|
|
|
|
|
|
|
install: all |
|
|
|
install: all |
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@echo installing executable files to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@cp -f svkbd ${DESTDIR}${PREFIX}/bin
|
|
|
|
@for i in ${LAYOUTS}; \
|
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/svkbd
|
|
|
|
do \
|
|
|
|
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
if [ -e svkbd.$$i ]; \
|
|
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
then \
|
|
|
|
|
|
|
|
echo CP svkbd.$$i; \
|
|
|
|
|
|
|
|
cp svkbd.$$i ${DESTDIR}${PREFIX}/bin; \
|
|
|
|
|
|
|
|
chmod 755 ${DESTDIR}${PREFIX}/bin/svkbd.$$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
|
|
|
|
# @sed "s/VERSION/${VERSION}/g" < svkbd.1 > ${DESTDIR}${MANPREFIX}/man1/svkbd.1
|
|
|
|
# @chmod 644 ${DESTDIR}${MANPREFIX}/man1/svkbd.1
|
|
|
|
# @chmod 644 ${DESTDIR}${MANPREFIX}/man1/svkbd.1
|
|
|
|
|
|
|
|
|
|
|
|
uninstall: |
|
|
|
uninstall: |
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
|
|
|
@echo removing executable files from ${DESTDIR}${PREFIX}/bin
|
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/svkbd
|
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/svkbd.*
|
|
|
|
# @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
# @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
# @rm -f ${DESTDIR}${MANPREFIX}/man1/svkbd.1
|
|
|
|
# @rm -f ${DESTDIR}${MANPREFIX}/man1/svkbd.1
|
|
|
|
|
|
|
|
|
|
|
|