Subversion Repositories Tewi

Rev

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

Rev 306 Rev 312
Line 1... Line 1...
1
# $Id: Makefile 306 2024-10-10 02:16:51Z nishi $
1
# $Id: Makefile 312 2024-10-13 18:17:37Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
PLATFORM_IDENT = NOT_WINDOWS
5
PLATFORM_IDENT = NOT_WINDOWS
6
PREFIX = /usr/local
6
PREFIX = /usr/local
Line 41... Line 41...
41
	if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
41
	if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
42
	cp mime.types $(DESTDIR)$(PREFIX)/
42
	cp mime.types $(DESTDIR)$(PREFIX)/
43
	if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi
43
	if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi
44
	if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
44
	if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
45
	-cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
45
	-cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
-
 
46
	-cp ./Server/tewi.exe $(DESTDIR)$(PREFIX)/bin/
46
	-cp ./Module/*.so $(DESTDIR)$(PREFIX)/lib/tewi/
47
	-cp ./Module/*.so $(DESTDIR)$(PREFIX)/lib/tewi/
-
 
48
	-cp ./Module/*.dll $(DESTDIR)$(PREFIX)/lib/tewi/
47
 
49
 
48
format:
50
format:
49
	clang-format --verbose -i `find ./Server ./Common ./Module ./Tool "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
51
	clang-format --verbose -i `find ./Server ./Common ./Module ./Tool "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
50
 
52
 
51
get-version:
53
get-version: