CC = gcc CFLAGS = -Wall -pedantic -Werror -std=c99 -O2 target = rc-status-memory source = main.c $(target): Makefile $(source) $(CC) $(CFLAGS) -o $(target) $(source) .PHONY : clean clean: @echo "provadim clean" rm -f $(target) install: $(target) @echo "Instaluji" cp -f $(target) /usr/local/bin sync