summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5b609cc..414324a 100755
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,10 @@ FLAGS=
DESTDIR=
PREFIX=/usr
-
.DEFAULT_GOAL := build
install: install-hbar install-headers
-build: prepare build-hbar
+build: build-hbar
install-headers: src/*.h
install -m644 src/*.h ${DESTDIR}${PREFIX}/include
@@ -20,9 +19,6 @@ install-hbar: bin/hbar
install -m755 bin/hbar ${DESTDIR}${PREFIX}/bin
build-hbar: src/hbar.c
+ mkdir -pv bin
${CC} src/hbar.c -o bin/hbar ${FLAGS}
-prepare:
- rm -rf bin
- mkdir -pv bin
-