fix(Makefile): Ensure no clobber to environment
To ensure my makefile doesn't clobber already set variables I ensure only to set them when needed. or otherwise append to what is there.
This commit is contained in:
parent
ba0fbf7a8b
commit
08be352d99
6
Makefile
6
Makefile
|
|
@ -1,11 +1,11 @@
|
|||
# Define the variables for the compiler and the flags
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -g -std=c99 -pedantic
|
||||
CC ?= gcc
|
||||
CFLAGS += -Wall -g -std=c99 -pedantic
|
||||
|
||||
# Define the libraries to link
|
||||
LIBS = -lsystemd -lbsd
|
||||
|
||||
prefix = /usr/local
|
||||
prefix ?= /usr/local
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)/bin
|
||||
dexpath = $(bindir)/dexedrine
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user