summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-05 09:37:13 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-05 09:37:13 -0400
commit6654b0954b8968e58d0503df2ac383774a314f5a (patch)
treed8fe9d371e58b1af745a8ba402c5b16577dfda1f
parent170cdacbe26b75032ba71340650179a62bfd49cf (diff)
parent7c7b551a02a3a876354a511e23001081049db409 (diff)
macos fix
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1b17344..f316f51 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,10 @@ install:
for shared in share/*; do \
cp -f $$shared $(DESTDIR)$(PREFIX)/share/mutt-wizard; \
done
+ if [[ "$(OS)" == "Darwin" ]]; then \
+ sed -iba 's/\/usr\//\/usr\/local\//' $(DESTDIR)$(PREFIX)/share/mutt-wizard/mutt-wizard.muttrc; \
+ rm $(DESTDIR)$(PREFIX)/share/mutt-wizard/mutt-wizard.muttrcba; \
+ fi
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1