Commit Diff


commit - e1c42cfe77468949a80423b76a2f87453939095e
commit + 2254ef432e3c248981cf30cf2cabb26e405d9c68
blob - c4418647f67f8d838b1b1eb29309c9d26bc449fd
blob + 0ad090de4753e8f509526de5dac6f08d43c3683c
--- Makefile
+++ Makefile
@@ -1,15 +1,15 @@
-CLIBS=-lcurses
+LDLIBS=-lcurses
 CFLAGS=-Wall -Wextra -Werror -O2
-PREFIX=/usr
+PREFIX=/usr/local
 INSTALL=install -Ds
 
 all: rover
 
 rover: rover.c config.h
-	$(CC) $(CFLAGS) -o $@ $< $(CLIBS)
+	$(CC) $(CFLAGS) -o $@ $< $(LDLIBS)
 
 install: rover
-	$(INSTALL) rover $(PREFIX)/bin/rover
+	$(INSTALL) rover $(DESTDIR)$(PREFIX)/bin/rover
 
 .PHONE: clean
 clean:
blob - 3a3c29908ceaba34fa8c53a08d4c7241a5b8a5b8
blob + 7b363d103f0cdeec8cf77437a3f738e514bb5a5e
--- README.md
+++ README.md
@@ -66,12 +66,12 @@ header file.
 Configuration
 =============
 
- By default, rover is installed to `/usr/bin/rover`. To change this and other
+ By default, rover is installed to `/usr/local/bin/rover`. To change this and other
 build options, such as the name of the curses library, please edit `Makefile`
 before executing `make` or specify the options during invocation. For example,
 to link against `libncurses.so` and install to `/opt/bin/rover`:
  ```
- make CLIBS=-lncurses PREFIX=/opt install
+ make LDLIBS=-lncurses PREFIX=/opt install
  ```
 
  Rover configuration (mostly key bindings and colors) can only be changed