aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-06-18 13:18:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-06-18 13:18:31 +0200
commit47f064f44d150fe1d27ef82af65a30cc32898fa8 (patch)
tree3d502155de5a1e0b7232ee1c10c97e217f0bdfea
parent7126cae4fd856c5bd7d9ad67abcb535fadcf391c (diff)
downloadnetlink-notify-47f064f44d150fe1d27ef82af65a30cc32898fa8.tar.gz
netlink-notify-47f064f44d150fe1d27ef82af65a30cc32898fa8.tar.zst
Makefile: make oxipng optional
-rw-r--r--Makefile2
-rw-r--r--README.md1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 974b337..1ea443b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
CC := gcc
MD := markdown
CONVERT := rsvg-convert
+OXIPNG := oxipng
INSTALL := install
CP := cp
RM := rm
@@ -36,6 +37,7 @@ icons: icons/netlink-notify-up.png icons/netlink-notify-down.png icons/netlink-n
%.png: %.svg
$(CONVERT) $< > $@
+ -$(OXIPNG) $@
README.html: README.md
$(MD) README.md > README.html
diff --git a/README.md b/README.md
index ecf0d9c..30875f5 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@ To compile and run `netlink-notify` you need:
* [linux](https://www.kernel.org/)
* [markdown](https://daringfireball.net/projects/markdown/) (HTML documentation)
* [librsvg](https://wiki.gnome.org/Projects/LibRsvg) (convert icons from SVG to PNG)
+* [oxipng](https://github.com/shssoichiro/oxipng) (optimize PNG icons)
Some systems may require additional development packages for the libraries.
Look for `libnotify-devel` or similar.