aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-06-17 11:05:45 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-06-18 13:14:04 +0200
commit28ccbc50f73f9a5e698f73c3000886416b9b5bd1 (patch)
tree6aa8d159876868c02ea1fdb57e5be2852504b106
parent4b5bccab138cde032a4ede84b0a3b8805465dc32 (diff)
downloadnetlink-notify-28ccbc50f73f9a5e698f73c3000886416b9b5bd1.tar.gz
netlink-notify-28ccbc50f73f9a5e698f73c3000886416b9b5bd1.tar.zst
Makefile: convert icons with librsvg
-rw-r--r--Makefile10
-rw-r--r--README.md2
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cdb839e..2f9b3ae 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
# commands
CC := gcc
MD := markdown
-CONVERT := convert -define png:compression-level=9 -background transparent
+CONVERT := rsvg-convert
INSTALL := install
CP := cp
RM := rm
@@ -35,16 +35,16 @@ version.h: $(wildcard .git/HEAD .git/index .git/refs/tags/*) Makefile
icons: icons/netlink-notify-up.png icons/netlink-notify-down.png icons/netlink-notify-address.png icons/netlink-notify-away.png
icons/netlink-notify-up.png: icons/netlink-notify-up.svg
- $(CONVERT) icons/netlink-notify-up.svg icons/netlink-notify-up.png
+ $(CONVERT) icons/netlink-notify-up.svg > icons/netlink-notify-up.png
icons/netlink-notify-down.png: icons/netlink-notify-down.svg
- $(CONVERT) icons/netlink-notify-down.svg icons/netlink-notify-down.png
+ $(CONVERT) icons/netlink-notify-down.svg > icons/netlink-notify-down.png
icons/netlink-notify-address.png: icons/netlink-notify-address.svg
- $(CONVERT) icons/netlink-notify-address.svg icons/netlink-notify-address.png
+ $(CONVERT) icons/netlink-notify-address.svg > icons/netlink-notify-address.png
icons/netlink-notify-away.png: icons/netlink-notify-away.svg
- $(CONVERT) icons/netlink-notify-away.svg icons/netlink-notify-away.png
+ $(CONVERT) icons/netlink-notify-away.svg > icons/netlink-notify-away.png
README.html: README.md
$(MD) README.md > README.html
diff --git a/README.md b/README.md
index 56e7809..ecf0d9c 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ To compile and run `netlink-notify` you need:
* [libnotify](https://developer.gnome.org/notification-spec/)
* [linux](https://www.kernel.org/)
* [markdown](https://daringfireball.net/projects/markdown/) (HTML documentation)
-* [inkscape](https://inkscape.org/) (convert icons from SVG to PNG)
+* [librsvg](https://wiki.gnome.org/Projects/LibRsvg) (convert icons from SVG to PNG)
Some systems may require additional development packages for the libraries.
Look for `libnotify-devel` or similar.