Fix braces for shell expansion in clean target; use install for install target; obey DESTDIR

This commit is contained in:
HalosGhost 2014-08-21 00:50:24 -05:00
parent d17e596cd7
commit f9b537e8f3

View File

@ -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)