From 3b92255deddc34b1e4fd023a3452f20f8bc5f78b Mon Sep 17 00:00:00 2001 From: Nishi Date: Sat, 21 Sep 2024 10:39:17 +0000 Subject: [PATCH] add install target git-svn-id: file:///raid/svn-personal/tewi/trunk@121 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.43.0