--- makefile.orig	2020-12-03 18:18:40.000000000 -0800
+++ makefile	2020-12-03 18:18:48.000000000 -0800
@@ -1,6 +1,6 @@
 FRAMEWORKS     = -framework Cocoa -framework Carbon -framework CoreServices
 BUILD_PATH     = ./bin
-BUILD_FLAGS    = -std=c99 -Wall -g -O0
+CFLAGS         += -std=c99
 SKHD_SRC       = ./src/skhd.c
 BINS           = $(BUILD_PATH)/skhd
 
@@ -8,12 +8,13 @@
 
 all: clean $(BINS)
 
-install: BUILD_FLAGS=-std=c99 -Wall -O2
 install: clean $(BINS)
+	cp $(BINS) $(DESTDIR)/$(PREFIX)/$(BINS)
 
 clean:
 	rm -rf $(BUILD_PATH)
 
 $(BUILD_PATH)/skhd: $(SKHD_SRC)
 	mkdir -p $(BUILD_PATH)
-	clang $^ $(BUILD_FLAGS) $(FRAMEWORKS) -o $@
+	mkdir -p $(BUILD_PATH)
+	$(CC) $^ $(CFLAGS) $(FRAMEWORKS) -o $@
