]> arthur.barton.de Git - netdata.git/blobdiff - Makefile
better handling of startup / cleanup
[netdata.git] / Makefile
index 3db02ca369bac778bd1aecdf8b082262b9153313..fcf418d411c8c27f53b76be4a66cfe1c8559ac98 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -11,28 +11,32 @@ else
 CFLAGS = $(COMMON_FLAGS) -Wall -Wextra -O3\r
 endif\r
 \r
-all: setuid\r
-\r
-bin: netdata plugins\r
-\r
-setuid: bin\r
+all: netdata plugins\r
        @echo\r
-       @echo " >>> apps.plugin requires root access to access files in /proc"\r
-       @echo " >>> Please authorize it!"\r
+       @echo "Compilation Done!"\r
+       @echo "You can 'make getconf' to get the config file conf.d/netdata.conf from the netdata server."\r
        @echo\r
-       sudo chown root plugins.d/apps.plugin\r
-       sudo chmod 4775 plugins.d/apps.plugin\r
+\r
+plugins: plugins.d/apps.plugin\r
 \r
 netdata: netdata.c\r
+       @echo\r
+       @echo "Compiling netdata server..."\r
        $(CC) $(CFLAGS) -o netdata netdata.c -lpthread -lz\r
 \r
-plugins: plugins.d/apps.plugin\r
-\r
 plugins.d/apps.plugin: apps_plugin.c\r
+       @echo\r
+       @echo "Compiling apps.plugin..."\r
        $(CC) $(CFLAGS) -o plugins.d/apps.plugin apps_plugin.c\r
+       @echo\r
+       @echo " >>> apps.plugin requires root access to access files in /proc"\r
+       @echo " >>> Please authorize it!"\r
+       @echo\r
+       -sudo chown root plugins.d/apps.plugin\r
+       -sudo chmod 4775 plugins.d/apps.plugin\r
 \r
 clean:\r
-       rm -f *.o netdata plugins.d/apps.plugin core\r
+       -rm -f *.o netdata plugins.d/apps.plugin core\r
 \r
 getconf:\r
        wget -O conf.d/netdata.conf.new "http://localhost:19999/netdata.conf"\r