| 41 @echo "install Webserver to $(WS_INSTALL_DIR)" |
41 @echo "install Webserver to $(WS_INSTALL_DIR)" |
| 42 mkdir -p $(WS_INSTALL_DIR)bin |
42 mkdir -p $(WS_INSTALL_DIR)bin |
| 43 mkdir -p $(WS_INSTALL_DIR)lib |
43 mkdir -p $(WS_INSTALL_DIR)lib |
| 44 mkdir -p $(WS_INSTALL_DIR)conf |
44 mkdir -p $(WS_INSTALL_DIR)conf |
| 45 mkdir -p $(WS_INSTALL_DIR)docs |
45 mkdir -p $(WS_INSTALL_DIR)docs |
| |
46 mkdir -p $(WS_INSTALL_DIR)logs |
| 46 mkdir -p $(WS_INSTALL_DIR)include |
47 mkdir -p $(WS_INSTALL_DIR)include |
| 47 @echo "copy config" |
48 @echo "copy config" |
| 48 cp templates/conf/init.conf $(WS_INSTALL_DIR)conf/init.conf |
49 cp templates/conf/init.conf $(WS_INSTALL_DIR)conf/init.conf |
| 49 cp templates/conf/obj.conf $(WS_INSTALL_DIR)conf/obj.conf |
50 cp templates/conf/obj.conf $(WS_INSTALL_DIR)conf/obj.conf |
| 50 cp templates/conf/server.conf $(WS_INSTALL_DIR)conf/server.conf |
51 cp templates/conf/server.conf $(WS_INSTALL_DIR)conf/server.conf |
| 55 @echo "copy includes" |
56 @echo "copy includes" |
| 56 cp src/server/public/nsapi.h $(WS_INSTALL_DIR)include/nsapi.h |
57 cp src/server/public/nsapi.h $(WS_INSTALL_DIR)include/nsapi.h |
| 57 @echo "copy scripts" |
58 @echo "copy scripts" |
| 58 sed s:%%WS_INSTALL_DIR%%:$(WS_INSTALL_DIR):g templates/bin/startserv.template > $(WS_INSTALL_DIR)bin/startserv |
59 sed s:%%WS_INSTALL_DIR%%:$(WS_INSTALL_DIR):g templates/bin/startserv.template > $(WS_INSTALL_DIR)bin/startserv |
| 59 chmod +x $(WS_INSTALL_DIR)bin/startserv |
60 chmod +x $(WS_INSTALL_DIR)bin/startserv |
| |
61 sed s:%%WS_INSTALL_DIR%%:$(WS_INSTALL_DIR):g templates/bin/stopserv.template > $(WS_INSTALL_DIR)bin/stopserv |
| |
62 chmod -x $(WS_INSTALL_DIR)bin/stopserv |
| |
63 sed s:%%WS_INSTALL_DIR%%:$(WS_INSTALL_DIR):g templates/bin/reconfig.template > $(WS_INSTALL_DIR)bin/reconfig |
| |
64 chmod -x $(WS_INSTALL_DIR)bin/reconfig |
| 60 @echo "copy docs" |
65 @echo "copy docs" |
| 61 cp -R templates/docs $(WS_INSTALL_DIR) |
66 cp -R templates/docs $(WS_INSTALL_DIR) |
| 62 |
67 |
| 63 |
68 |