aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7fa9481..250767a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+.PHONY: debug install defconfig clean
+
CC = clang++
RM = rm -f
PREFIX ?= /usr/local
@@ -17,8 +19,8 @@ $(OBJDIR):
$(OBJDIR)/%.o: src/%.cc | $(OBJDIR)
${CC} $(CXXFLAGS) -c -o $@ $<
-debug: src/*.cc
- ${CC} -o pkgit src/*.cc ${CXXFLAGS} ${LDFLAGS} -g -O0
+debug: CXXFLAGS += -g -O0
+debug: pkgit
install: pkgit
install -d ${DESTDIR}${PREFIX}/bin