From 505a9e296fda7f7939da1d47f164ba8599c3542b Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 27 Jun 2016 09:30:05 +0200 Subject: [PATCH 1/2] Use predefined $(RM) in order to not result in an error if dir was cleaned before --- src/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefile b/src/makefile index f04eff2..bb0aab3 100644 --- a/src/makefile +++ b/src/makefile @@ -14,7 +14,7 @@ $(EXECUTABLE): $(OBJECTS) $(CC) $(CFLAGS) $< -o $@ clean: - rm *.o + $(RM) *.o install: mkdir -p /xlxd From ee56e7908093173621e723433c6e42929fccc916 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 27 Jun 2016 13:34:27 +0200 Subject: [PATCH 2/2] Add definition of $(RM) --- src/makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/makefile b/src/makefile index bb0aab3..4c11c68 100644 --- a/src/makefile +++ b/src/makefile @@ -4,6 +4,7 @@ LDFLAGS=-std=c++11 -pthread SOURCES=$(wildcard *.cpp) OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=xlxd +RM=rm -f all: $(SOURCES) $(EXECUTABLE)