From b769f4fc271f38318458ae9938f96cd2e6287452 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 11:33:49 +0200 Subject: use new icons, update build system --- Makefile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56248bf..f40abde 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,32 @@ # netlink-notify - Notify about netlink changes CC := gcc +CONVERT := inkscape --export-png +INSTALL := install CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libnotify) VERSION = $(shell git describe --tags --long) -all: netlink-notify.c +all: binary icons + +binary: netlink-notify.c $(CC) $(CFLAGS) -o netlink-notify netlink-notify.c \ -DVERSION="\"$(VERSION)\"" +icons: + $(CONVERT) netlink-notify-up.png netlink-notify-up.svg + $(CONVERT) netlink-notify-down.png netlink-notify-down.svg + $(CONVERT) netlink-notify-address.png netlink-notify-address.svg + +install: + $(INSTALL) -D -m0755 netlink-notify /usr/bin/netlink-notify + $(INSTALL) -D -m0644 netlink-notify.desktop /etc/xdg/autostart/netlink-notify.desktop + $(INSTALL) -D -m0755 netlink-notify-up.svg /usr/share/icons/hicolor/scalable/status/netlink-notify-up.svg + $(INSTALL) -D -m0755 netlink-notify-down.svg /usr/share/icons/hicolor/scalable/status/netlink-notify-down.svg + $(INSTALL) -D -m0755 netlink-notify-address.svg /usr/share/icons/hicolor/scalable/status/netlink-notify-address.svg + $(INSTALL) -D -m0755 netlink-notify-up.png /usr/share/icons/hicolor/48x48/status/netlink-notify-up.png + $(INSTALL) -D -m0755 netlink-notify-down.png /usr/share/icons/hicolor/48x48/status/netlink-notify-down.png + $(INSTALL) -D -m0755 netlink-notify-address.png /usr/share/icons/hicolor/48x48/status/netlink-notify-address.png + clean: - /bin/rm -f *.o *~ netlink-notify + /bin/rm -f *.o *.png *~ netlink-notify -- cgit v1.2.3-70-g09d2