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:
parent
1f8bc0f275
commit
3fccfc023d
1 changed files with 3 additions and 3 deletions
6
Makefile
6
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue