From 3fccfc023d5b3088a94acb99da9e5d03951781d8 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Mon, 30 Sep 2024 11:51:38 -0500 Subject: [PATCH] Makefile: Make installer actually work! There were some pretty stupid issues that past me didn't fix! Now, there shouldn't be an extra bin inside of your $PREFIX's bin! --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8546d22..03765be 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ dist/bin: mkdir -pv $@ dist/bin/%.bash: %.bash - ln -s ../lib/bash-util/$*.bash $@ + ln -sf ../lib/bash-util/$*.bash $@ dist/bin/%: scripts/% dist/bin sed 's/^\(.\s\+\)\("\)*.\+\/util\//\1\2$(shell \ @@ -44,12 +44,12 @@ dist/lib/bash-util/%.bash: %.bash chmod 644 $@ $(PREFIX)/bin/util: - ln -s $(PREFIX)/lib/bash-util $(PREFIX)/bin/util + ln -sf $(PREFIX)/lib/bash-util $(PREFIX)/bin/util install: dist cd dist && \ for each in *; \ - do cp -rv "$$each" "$(PREFIX)/$$each"; \ + do cp -rv "$$each"/* "$(PREFIX)/$$each/"; \ done clean: