From b2765e063abfd56eace58a1cf305e0f1193df813 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Thu, 21 Oct 2021 17:08:58 -0400 Subject: [PATCH] Makefile: rework install target. --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 789e3c3..eb0f2d7 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,11 @@ build-release: @strip bin/* tar -czf release.tar.gz bin/* -#TODO: fix this, this is terrible oh god help me install: - @for prog in ${EXCLUDE_PROGS}; do \ - mv bin/$$prog /tmp; \ + @install -m 777 bin/dbox ${DESTDIR}/usr/local/bin + @for prog in ${PROGS}; do \ + ln ${DESTDIR}/usr/local/bin/dbox ${DESTDIR}/usr/local/bin/$$prog; \ done - install -m 777 bin/* ${DESTDIR}usr/local/bin @for prog in ${EXCLUDE_PROGS}; do \ - mv /tmp/$$prog bin; \ + rm ${DESTDIR}/usr/local/bin/$$prog; \ done -