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.
gentoo-overlay/app-i18n/rime-data/files/Makefile

26 lines
514 B

ifeq (${SRCDIR},)
SRCDIR=$(shell pwd)
endif
DATA:=${SRCDIR}/data
ifeq (${PREFIX},)
PREFIX=/usr
endif
ifeq (${RIME_DATA_DIR},)
RIME_DATA_DIR=/share/rime-data
endif
all:
@echo "building rime data"
@mkdir -p ${DATA}
@cp default.yaml ${DATA}
@cp essay.kct ${DATA}
@cp supplement/*.yaml ${DATA}
@cp preset/*.yaml ${DATA}
rime_deployer --build ${DATA}
install:
@echo "installing rime data"
@install -d ${DESTDIR}${PREFIX}${RIME_DATA_DIR}
@install -m 644 ${DATA}/* ${DESTDIR}${PREFIX}${RIME_DATA_DIR}