Subversion Repositories Tewi

Rev

Rev 80 | Rev 128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 121
Line 1... Line 1...
1
# $Id: Makefile 80 2024-09-19 11:13:18Z nishi $
1
# $Id: Makefile 121 2024-09-21 10:39:17Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
PREFIX = /usr/local
5
PREFIX = /usr/local
6
 
6
 
Line 25... Line 25...
25
	$(MAKE) -C $@ $(FLAGS)
25
	$(MAKE) -C $@ $(FLAGS)
26
 
26
 
27
./Manpage::
27
./Manpage::
28
	$(MAKE) -C $@ $(FLAGS)
28
	$(MAKE) -C $@ $(FLAGS)
29
 
29
 
-
 
30
install: all
-
 
31
	mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc
-
 
32
	if [ ! -e $(PREFIX)/etc/tewi.conf ]; then cp example.conf $(PREFIX)/etc/tewi.conf ; fi
-
 
33
	cp ./Server/tewi $(PREFIX)/bin/
-
 
34
	cp ./Module/*.so $(PREFIX)/lib/tewi/
-
 
35
	cp ./Manpage/tewi.conf.5 $(PREFIX)/share/man/man5/
-
 
36
 
30
format:
37
format:
31
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
38
	clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
32
 
39
 
33
get-version:
40
get-version:
34
	@grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'
41
	@grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'