Updates makefile and settles on GNU make style if statements

This commit is contained in:
sloum 2021-05-31 22:19:47 -07:00
parent 67407890b0
commit 3a13aac543
3 changed files with 22 additions and 0 deletions

View File

@ -24,6 +24,16 @@ install-bin: build/goldberry
install -d ${DESTDIR}${BINDIR}
install -m 0755 ./build/${BINARY} ${DESTDIR}${BINDIR}
.PHONY: install-desktop
install-desktop:
ifeq ($(shell uname), Linux)
install -d ${DESTDIR}${DATAROOTDIR}/applications
install -m 0644 ./${BINARY}.desktop ${DESTDIR}${DATAROOTDIR}/applications
install -d ${DESTDIR}${DATAROOTDIR}/pixmaps
install -m 0644 ./${BINARY}-icon.png ${DESTDIR}${DATAROOTDIR}/pixmaps
-update-desktop-database 2> /dev/null
endif
.PHONY: clean
clean:
rm -f ./${BINARY}.1.gz 2> /dev/null
@ -33,4 +43,7 @@ clean:
uninstall: clean
rm -f ${DESTDIR}${MAN1DIR}/${BINARY}.1.gz
rm -f ${DESTDIR}${BINDIR}/${BINARY}
rm -f ${DESTDIR}${DATAROOTDIR}/applications/${BINARY}
rm -f ${DESTDIR}${DATAROOTDIR}/pixmaps/${BINARY}-icon.png
-update-desktop-database 2> /dev/null

BIN
goldberry-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

9
goldberry.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Goldberry
GenericName=Smallnew Client
Comment=View gopher and gemini sites over the internet
Terminal=false
Categories=Network;WebBrowser;GTK;
Exec=goldberry
Icon=goldberry-icon