summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-13 11:45:39 +0000
committerdavidovski <david@davidovski.xyz>2022-02-13 11:45:39 +0000
commit355a513ee8ca5ce04a323c0a3fa6f20779dcc4fd (patch)
treefa7ee0537c3a99ce78f8d81fd1eee4d1e39c9dbb /Makefile
parent81a52d0de767301f2898bcef928e4d882d5eee6e (diff)
Fixed makefile
Diffstat (limited to 'Makefile')
-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
-