Permalink
Browse files

Conditional assignment on PREFIX definition

This allows PREFIX to be overridden to install mon in another location when calling make.

ie: ``` PREFIX=/my/custom/path make install```
  • Loading branch information...
1 parent bc8467e commit 3568241a95196655e882836a3e5b5667455e40e4 @ovaillancourt ovaillancourt committed Oct 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 Makefile
View
@@ -1,5 +1,4 @@
-
-PREFIX = /usr/local
+PREFIX ?= /usr/local
SRC = src/mon.c deps/ms/ms.c deps/commander/src/commander.c
OBJ = $(SRC:.c=.o)
CFLAGS = -D_GNU_SOURCE -std=c99 -I deps/ms -I deps/commander/src

0 comments on commit 3568241

Please sign in to comment.