Line 1... |
Line 1... |
1 |
# $Id: Makefile 358 2024-10-16 10:49:46Z nishi $
|
1 |
# $Id: Makefile 365 2024-10-17 00:49:22Z 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 42... |
Line 42... |
42 |
./README: ./README.tmpl ./Server/tw_version.h
|
42 |
./README: ./README.tmpl ./Server/tw_version.h
|
43 |
sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`/g" ./README.tmpl > $@
|
43 |
sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`/g" ./README.tmpl > $@
|
44 |
|
44 |
|
45 |
install: all ./Tool/genconf ./Tool/itworks
|
45 |
install: all ./Tool/genconf ./Tool/itworks
|
46 |
-mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www
|
46 |
-mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www
|
47 |
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
|
47 |
if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi `echo $(LIBSUF) | sed 's/\.//g'` > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
|
48 |
cp mime.types $(DESTDIR)$(PREFIX)/
|
48 |
cp mime.types $(DESTDIR)$(PREFIX)/
|
49 |
if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi
|
49 |
if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi
|
50 |
if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
|
50 |
if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
|
51 |
-cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
|
51 |
-cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
|
52 |
-cp ./Server/tewi.exe $(DESTDIR)$(PREFIX)/bin/
|
52 |
-cp ./Server/tewi.exe $(DESTDIR)$(PREFIX)/bin/
|