From 35c580c9d0130c35c6ac8541e6185e88ca5265fd Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Fri, 15 Nov 2019 14:05:10 -0800 Subject: [PATCH] Removes protocol handler association for non-linux systems --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 7da7f86..c91c5a0 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,9 @@ install-man: bombadillo.1 .PHONY: install-desktop install-desktop: +ifeq ($(shell uname), Linux) + # These steps will not work on Darwin, Plan9, or Windows + # They would likely work on BSD systems install -d ${DESTDIR}${DATAROOTDIR}/applications install -m 0644 ./bombadillo.desktop ${DESTDIR}${DATAROOTDIR}/applications install -d ${DESTDIR}${DATAROOTDIR}/pixmaps @@ -43,6 +46,9 @@ install-desktop: xdg-mime default bombadillo.desktop x-scheme-handler/gopher xdg-mime default bombadillo.desktop x-scheme-handler/gemini xdg-mime default bombadillo.desktop x-scheme-handler/finger +else + @echo "* Skipping protocol handler associations and desktop file creation for non-linux system *" +endif .PHONY: install-bin install-bin: build