DATAPREFIX = ${PREFIX}/data
.endif
+CNFPREFIX = /etc
+.if ${UNAME_S} == "Haiku"
+CNFPREFIX = ${DATAPREFIX}
+.elif ${UNAME_S} == "FreeBSD" || ${UNAME_S} == "NetBSD" || ${UNAME_S} == "Dragonfly"
+CNFPREFIX = ${PREFIX}/etc
+.endif
+
CC = cc
FILES = main.c src/*.c
sed "s/VERSION/${VERSION}/g" < man/${NAME}-jp.1 > \
release/man/${VERSION}/${NAME}-jp.1
+config:
+ mkdir -p ${DESTDIR}${DATAPREFIX}/sp/example
+ cp -f ${NAME}.conf ${DESTDIR}${DATAPREFIX}/sp/example
+
release:
mkdir -p release/bin/${VERSION}/${OS}/${UNAME_M}
${CC} -O3 ${CFLAGS} -o release/bin/${VERSION}/${OS}/${UNAME_M}/${NAME} ${FILES} \
rm -rf ${DESTDIR}${MANPREFIX}/man1/${NAME}-jp.1
rm -rf ${DESTDIR}${DATAPREFIX}/zsh/site-functions/_${NAME}
-.PHONY: all clean dist man release install install-zsh uninstall
+.PHONY: all clean dist man config release install install-zsh uninstall
--- /dev/null
+language = ja
+cloud sync enabled = false
+cloud sync username = admin
+cloud sync password = 1234
+cloud sync instance = sp.076.moe
+hide password = true
+copy timeout = 45