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