39 |
39 |
40 install: all |
40 install: all |
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)config |
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)logs |
47 mkdir -p $(WS_INSTALL_DIR)include |
47 mkdir -p $(WS_INSTALL_DIR)include |
48 @echo "copy config" |
48 @echo "copy config" |
49 cp templates/conf/init.conf $(WS_INSTALL_DIR)conf/init.conf |
49 cp templates/config/init.conf $(WS_INSTALL_DIR)config/init.conf |
50 cp templates/conf/obj.conf $(WS_INSTALL_DIR)conf/obj.conf |
50 cp templates/config/obj.conf $(WS_INSTALL_DIR)config/obj.conf |
51 cp templates/conf/server.conf $(WS_INSTALL_DIR)conf/server.conf |
51 cp templates/config/server.conf $(WS_INSTALL_DIR)config/server.conf |
|
52 cp templates/config/mime.types $(WS_INSTALL_DIR)config/mime.types |
52 @echo "copy binaries" |
53 @echo "copy binaries" |
53 mv work/bin/webservd work/bin/webservd.bin |
54 mv work/bin/webservd work/bin/webservd.bin |
54 cp work/bin/webservd.bin $(WS_INSTALL_DIR)bin/webservd |
55 cp work/bin/webservd.bin $(WS_INSTALL_DIR)bin/webservd |
55 rm work/bin/webservd.bin |
56 rm work/bin/webservd.bin |
56 @echo "copy includes" |
57 @echo "copy includes" |