From 47f064f44d150fe1d27ef82af65a30cc32898fa8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 18 Jun 2024 13:18:31 +0200 Subject: Makefile: make oxipng optional --- Makefile | 2 ++ README.md | 1 + 2 files changed, 3 insertions(+) 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. -- cgit v1.2.3-70-g09d2