Check for already exisiting desktop entry (#100)

When st desktop entry already exists it throws error when running make
This commit is contained in:
Sajay 2023-07-05 14:45:27 +05:30 committed by GitHub
parent b82057eb85
commit f097dbd079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ install: st
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
tic -sx st.info
mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch
@echo Please see the README file regarding the terminfo entry of st.
uninstall: