Fix braces for shell expansion in clean target; use install
for install target; obey DESTDIR
This commit is contained in:
parent
d17e596cd7
commit
f9b537e8f3
6
Makefile
6
Makefile
@ -46,10 +46,10 @@ test: $(SRC_OBJECTS) $(TESTS_OBJECTS)
|
|||||||
@./$(TESTS_EXECUTABLE)
|
@./$(TESTS_EXECUTABLE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ($(SRC_DIR),$(TESTS_DIR))/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE)
|
@rm -rf {$(SRC_DIR),$(TESTS_DIR)}/*.o $(EXECUTABLE) $(TESTS_EXECUTABLE)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -pf $(EXECUTABLE) $(PREFIX)/bin
|
@install -Dm755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(PREFIX)/bin/$(EXECUTABLE)
|
@rm -f $(PREFIX)/bin/$(EXECUTABLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user