Line 1... |
Line 1... |
1 |
# $Id: Makefile 131 2024-09-23 10:30:00Z nishi $
|
1 |
# $Id: Makefile 145 2024-09-23 18:18:27Z 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 38... |
Line 38... |
38 |
if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
|
38 |
if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
|
39 |
if [ ! -e $(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(PREFIX)/www/index.html || ( rm $(PREFIX)/www/index.html ; exit 1 ) ) ; fi
|
39 |
if [ ! -e $(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(PREFIX)/www/index.html || ( rm $(PREFIX)/www/index.html ; exit 1 ) ) ; fi
|
40 |
if [ ! -e $(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(PREFIX)/www/ || ( rm $(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
|
40 |
if [ ! -e $(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(PREFIX)/www/ || ( rm $(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
|
41 |
cp ./Server/tewi $(PREFIX)/bin/
|
41 |
cp ./Server/tewi $(PREFIX)/bin/
|
42 |
cp ./Module/*.so $(PREFIX)/lib/tewi/
|
42 |
cp ./Module/*.so $(PREFIX)/lib/tewi/
|
43 |
cp ./Manpage/tewi.conf.5 $(PREFIX)/share/man/man5/
|
43 |
cp ./Manpage/tewi.8 $(PREFIX)/share/man/man8/
|
44 |
|
44 |
|
45 |
format:
|
45 |
format:
|
46 |
clang-format --verbose -i `find ./Server ./Common ./Module ./Tool "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
|
46 |
clang-format --verbose -i `find ./Server ./Common ./Module ./Tool "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
|
47 |
|
47 |
|
48 |
get-version:
|
48 |
get-version:
|