2014-11-11 16:29:05 (UTC-02:00)
Marcel Rodrigues <marcelgmr@gmail.com>
More conventional Makefile.
diff --git a/Makefile b/Makefile index c441864..0ad090d 100644 --- a/Makefile +++ b/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: diff --git a/README.md b/README.md index 3a3c299..7b363d1 100644 --- a/README.md +++ b/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