diff --git a/core/plug-in/stats/Makefile b/core/plug-in/stats/Makefile index dcb51e8a..faed60a3 100644 --- a/core/plug-in/stats/Makefile +++ b/core/plug-in/stats/Makefile @@ -1,11 +1,18 @@ COREPATH =../.. plug_in_name = stats +QUERY_STATS_NAME = sems-stats module_ldflags = module_cflags = +extra_target = query_stats +extra_install = install_query_stats include ../Makefile.app_module query_stats: query_stats.c Makefile - $(CXX) $(CXXFLAGS) -o query_stats query_stats.c + $(CXX) $(CXXFLAGS) -o $(QUERY_STATS_NAME) query_stats.c + +install_query_stats: query_stats $(DESTDIR)$(bin-prefix)/$(bin-dir) + $(INSTALL-TOUCH) $(DESTDIR)$(bin-prefix)/$(bin-dir)$(QUERY_STATS_NAME) + $(INSTALL-BIN) $(QUERY_STATS_NAME) $(DESTDIR)$(bin-prefix)/$(bin-dir) diff --git a/core/plug-in/stats/query_stats.c b/core/plug-in/stats/query_stats.c index b246c28e..3823f4e3 100644 --- a/core/plug-in/stats/query_stats.c +++ b/core/plug-in/stats/query_stats.c @@ -16,6 +16,8 @@ using std::string; void print_usage(const char * progname) { fprintf(stderr, + "SIP Express Media Server stats query\n" + "\n" "Syntax: %s []\n" "\n" "where : \n"