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!
This commit is contained in:
Andrea Rogers 2024-09-30 11:51:38 -05:00
commit 3fccfc023d

View file

@ -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: