Line 1... |
Line 1... |
1 |
# $Id: Makefile 271 2024-10-06 01:40:59Z nishi $
|
1 |
# $Id: Makefile 306 2024-10-10 02:16:51Z 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 35... |
Line 35... |
35 |
|
35 |
|
36 |
./README: ./README.tmpl ./Server/tw_version.h
|
36 |
./README: ./README.tmpl ./Server/tw_version.h
|
37 |
sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`/g" ./README.tmpl > $@
|
37 |
sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`/g" ./README.tmpl > $@
|
38 |
|
38 |
|
39 |
install: all ./Tool/genconf ./Tool/itworks
|
39 |
install: all ./Tool/genconf ./Tool/itworks
|
40 |
mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www
|
40 |
-mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www
|
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/
|