summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess2020-06-18 14:16:03 -0400
committerJoey Hess2020-06-18 14:16:03 -0400
commit0aaee4aa10dc9c15bb5db0327ca5bd20f6fcd2d0 (patch)
treec588ac4cd6a32b9664b0abfa58ca2670edad9460
parent58112d0c591bd03ee2b90beb7d569c3e98cdd908 (diff)
use cabal exec here too
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fffecb1e..2d55cc44 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ build: tags propellor.1 configured
install:
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
if [ -d dist-newstyle ]; then \
- install -s $$(find dist-newstyle/ -executable -type f | grep 'build/propellor/propellor$$') $(DESTDIR)/usr/bin/propellor; \
+ install -s $$(cabal exec -- sh -c 'command -v propellor') $(DESTDIR)/usr/bin/propellor; \
else \
install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor; \
fi