winlin

add colorful display for make.

@@ -43,7 +43,20 @@ echo "generate Makefile" @@ -43,7 +43,20 @@ echo "generate Makefile"
43 SRS_MAKEFILE="Makefile" 43 SRS_MAKEFILE="Makefile"
44 cat << END > ${SRS_MAKEFILE} 44 cat << END > ${SRS_MAKEFILE}
45 .PHONY: default help clean server bandwidth librtmp librtmp-sample _prepare_dir 45 .PHONY: default help clean server bandwidth librtmp librtmp-sample _prepare_dir
  46 +
  47 +RED="\\\\e[31m"
  48 +GREEN="\\\\e[32m"
  49 +YELLOW="\\\\e[33m"
  50 +BLACK="\\\\e[0m"
  51 +
46 default: server bandwidth librtmp librtmp-sample 52 default: server bandwidth librtmp librtmp-sample
  53 + @echo -e "\$(GREEN)"
  54 + @echo -e "build success:"
  55 + @echo -e " server: ./objs/srs, the srs server"
  56 + @echo -e " bandwidth: ./objs/bandwidth, the bandwidth test client"
  57 + @echo -e " librtmp: ./objs/include, ./objs/lib, the srs-librtmp library"
  58 + @echo -e " librtmp-sample: ./research/librtmp, the srs-librtmp client sample"
  59 + @echo -e "\$(BLACK)"
47 60
48 help: 61 help:
49 @echo "Usage: make <help>|<clean>|<server>|<bandwidth>|<librtmp>|<librtmp-sample>" 62 @echo "Usage: make <help>|<clean>|<server>|<bandwidth>|<librtmp>|<librtmp-sample>"