Makefile: rework install target.

master
Drake 3 years ago
parent 8dcabbbc5e
commit b2765e063a
No known key found for this signature in database
GPG Key ID: 9B83455BD94F12A3

@ -32,13 +32,11 @@ build-release:
@strip bin/* @strip bin/*
tar -czf release.tar.gz bin/* tar -czf release.tar.gz bin/*
#TODO: fix this, this is terrible oh god help me
install: install:
@for prog in ${EXCLUDE_PROGS}; do \ @install -m 777 bin/dbox ${DESTDIR}/usr/local/bin
mv bin/$$prog /tmp; \ @for prog in ${PROGS}; do \
ln ${DESTDIR}/usr/local/bin/dbox ${DESTDIR}/usr/local/bin/$$prog; \
done done
install -m 777 bin/* ${DESTDIR}usr/local/bin
@for prog in ${EXCLUDE_PROGS}; do \ @for prog in ${EXCLUDE_PROGS}; do \
mv /tmp/$$prog bin; \ rm ${DESTDIR}/usr/local/bin/$$prog; \
done done

Loading…
Cancel
Save