Adds desktop entry and icon, plus build target for makefile
This commit is contained in:
parent
88f26ff92b
commit
f49f8bebdd
11
Makefile
11
Makefile
|
@ -26,7 +26,7 @@ build:
|
||||||
${GOCMD} build ${LDFLAGS} -o ${BINARY}
|
${GOCMD} build ${LDFLAGS} -o ${BINARY}
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: install-bin install-man clean
|
install: install-bin install-man install-desktop clean
|
||||||
|
|
||||||
.PHONY: install-man
|
.PHONY: install-man
|
||||||
install-man: bombadillo.1
|
install-man: bombadillo.1
|
||||||
|
@ -34,6 +34,13 @@ install-man: bombadillo.1
|
||||||
install -d ${DESTDIR}${MAN1DIR}
|
install -d ${DESTDIR}${MAN1DIR}
|
||||||
install -m 0644 ./bombadillo.1.gz ${DESTDIR}${MAN1DIR}
|
install -m 0644 ./bombadillo.1.gz ${DESTDIR}${MAN1DIR}
|
||||||
|
|
||||||
|
.PHONY: install-desktop
|
||||||
|
install-desktop:
|
||||||
|
install -d ${DESTDIR}${DATAROOTDIR}/applications
|
||||||
|
install -m 0644 ./bombadillo.desktop ${DESTDIR}${DATAROOTDIR}/applications
|
||||||
|
install -d ${DESTDIR}${DATAROOTDIR}/pixmaps
|
||||||
|
install -m 0644 ./bombadillo-icon.png ${DESTDIR}${DATAROOTDIR}/pixmaps
|
||||||
|
|
||||||
.PHONY: install-bin
|
.PHONY: install-bin
|
||||||
install-bin: build
|
install-bin: build
|
||||||
install -d ${DESTDIR}${BINDIR}
|
install -d ${DESTDIR}${BINDIR}
|
||||||
|
@ -48,6 +55,8 @@ clean:
|
||||||
uninstall: clean
|
uninstall: clean
|
||||||
rm -f ${DESTDIR}${MAN1DIR}/bombadillo.1.gz
|
rm -f ${DESTDIR}${MAN1DIR}/bombadillo.1.gz
|
||||||
rm -f ${DESTDIR}${BINDIR}/${BINARY}
|
rm -f ${DESTDIR}${BINDIR}/${BINARY}
|
||||||
|
rm -f ${DESTDIR}${DATAROOTDIR}/applications/bombadillo.desktop
|
||||||
|
rm -f ${DESTDIR}${DATAROOTDIR}/pixmaps/bombadillo-icon.png
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: clean build
|
test: clean build
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Bombadillo
|
|
||||||
Type=Application
|
Type=Application
|
||||||
|
Name=Bombadillo
|
||||||
|
GenericName=Non-Web Browser
|
||||||
|
Comment=View gopher, gemini, finger, telnet, http(s) sites over the internet
|
||||||
Terminal=true
|
Terminal=true
|
||||||
|
Categories=Network;Application;WebBrowser;ConsoleOnly;
|
||||||
Exec=bombadillo
|
Exec=bombadillo
|
||||||
Icon=bombadillo-icon
|
Icon=bombadillo-icon
|
||||||
|
|
Loading…
Reference in New Issue