40 mkdir -p $(INSTALL_DIR)/include |
40 mkdir -p $(INSTALL_DIR)/include |
41 @echo "copy config" |
41 @echo "copy config" |
42 cp ../templates/config/init.conf $(INSTALL_DIR)/config/init.conf |
42 cp ../templates/config/init.conf $(INSTALL_DIR)/config/init.conf |
43 cp ../templates/config/obj.conf $(INSTALL_DIR)/config/obj.conf |
43 cp ../templates/config/obj.conf $(INSTALL_DIR)/config/obj.conf |
44 cp ../templates/config/mime.types $(INSTALL_DIR)/config/mime.types |
44 cp ../templates/config/mime.types $(INSTALL_DIR)/config/mime.types |
|
45 cp ../templates/config/acl.conf $(INSTALL_DIR)/config/acl.conf |
45 sed s:%%WS_HOST%%:$(HOST):g ../templates/config/server.template > $(INSTALL_DIR)/config/server.conf |
46 sed s:%%WS_HOST%%:$(HOST):g ../templates/config/server.template > $(INSTALL_DIR)/config/server.conf |
46 @echo "copy binaries" |
47 @echo "copy binaries" |
47 mv ../work/bin/webservd ../work/bin/webservd.bin |
48 mv ../work/bin/webservd ../work/bin/webservd.bin |
48 cp ../work/bin/webservd.bin $(INSTALL_DIR)/bin/webservd |
49 cp ../work/bin/webservd.bin $(INSTALL_DIR)/bin/webservd |
49 rm ../work/bin/webservd.bin |
50 rm ../work/bin/webservd.bin |
50 @echo "copy includes" |
51 @echo "copy includes" |
51 cp ../src/server/public/nsapi.h $(INSTALL_DIR)/include/nsapi.h |
52 cp ../src/server/public/nsapi.h $(INSTALL_DIR)/include/nsapi.h |
|
53 cp ../src/server/public/auth.h $(INSTALL_DIR)/include/auth.h |
|
54 cp ../src/server/public/acl.h $(INSTALL_DIR)/include/acl.h |
|
55 cp ../src/server/public/vfs.h $(INSTALL_DIR)/include/vfs.h |
|
56 cp ../src/server/public/webdav.h $(INSTALL_DIR)/include/webdav.h |
52 @echo "copy scripts" |
57 @echo "copy scripts" |
53 sed s:%%WS_INSTALL_DIR%%:$(INSTALL_DIR):g ../templates/bin/startserv.template > $(INSTALL_DIR)/bin/startserv |
58 sed s:%%WS_INSTALL_DIR%%:$(INSTALL_DIR):g ../templates/bin/startserv.template > $(INSTALL_DIR)/bin/startserv |
54 chmod +x $(INSTALL_DIR)/bin/startserv |
59 chmod +x $(INSTALL_DIR)/bin/startserv |
55 sed s:%%WS_INSTALL_DIR%%:$(INSTALL_DIR):g ../templates/bin/stopserv.template > $(INSTALL_DIR)/bin/stopserv |
60 sed s:%%WS_INSTALL_DIR%%:$(INSTALL_DIR):g ../templates/bin/stopserv.template > $(INSTALL_DIR)/bin/stopserv |
56 chmod +x $(INSTALL_DIR)/bin/stopserv |
61 chmod +x $(INSTALL_DIR)/bin/stopserv |