From f9b537e8f3bb06699beaf16ba06e073acd746396 Mon Sep 17 00:00:00 2001 From: HalosGhost Date: Thu, 21 Aug 2014 00:50:24 -0500 Subject: [PATCH] Fix braces for shell expansion in clean target; use `install` for install target; obey DESTDIR --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c2f196d..b6150a2 100644 --- a/Makefile +++ b/Makefile @@ -46,10 +46,10 @@ test: $(SRC_OBJECTS) $(TESTS_OBJECTS) @./$(TESTS_EXECUTABLE) clean: - rm -rf ($(SRC_DIR),$(TESTS_DIR))/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE) + @rm -rf {$(SRC_DIR),$(TESTS_DIR)}/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE) install: - cp -pf $(EXECUTABLE) $(PREFIX)/bin + @install -Dm755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE) uninstall: - rm -f $(PREFIX)/bin/$(EXECUTABLE) + @rm -f $(PREFIX)/bin/$(EXECUTABLE)