From: Nishi Date: Sat, 21 Sep 2024 10:39:17 +0000 (+0000) Subject: add install target X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=3b92255deddc34b1e4fd023a3452f20f8bc5f78b;p=tewi.git add install target git-svn-id: file:///raid/svn-personal/tewi/trunk@121 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Makefile b/Makefile index 931106a..1379f31 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,13 @@ all: ./Server ./Module ./Manpage ./Manpage:: $(MAKE) -C $@ $(FLAGS) +install: all + mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc + if [ ! -e $(PREFIX)/etc/tewi.conf ]; then cp example.conf $(PREFIX)/etc/tewi.conf ; fi + cp ./Server/tewi $(PREFIX)/bin/ + cp ./Module/*.so $(PREFIX)/lib/tewi/ + cp ./Manpage/tewi.conf.5 $(PREFIX)/share/man/man5/ + format: clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h