From d2239ae2007f9b2e0ac25d22d8c083b39c4cdbe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Thu, 17 Oct 2024 12:08:06 +0900 Subject: [PATCH] =?utf8?q?=E3=82=B3=E3=83=B3=E3=83=95=E3=82=A3=E3=82=B0?= =?utf8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE=E6=BA=96=E5=82=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 13 ++++++++++++- sp.conf | 7 +++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sp.conf diff --git a/Makefile b/Makefile index 7490165..6e90dfc 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,13 @@ DATAPREFIX = ${PREFIX}/share 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 @@ -85,6 +92,10 @@ man: 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} \ @@ -112,4 +123,4 @@ uninstall: 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 diff --git a/sp.conf b/sp.conf new file mode 100644 index 0000000..16c2066 --- /dev/null +++ b/sp.conf @@ -0,0 +1,7 @@ +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 -- 2.43.0