diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-08 11:33:49 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-08 11:33:49 +0200 |
commit | b769f4fc271f38318458ae9938f96cd2e6287452 (patch) | |
tree | cb1fd29ecc1ab556df99f6fe757e61f110917e75 /Makefile | |
parent | cbd48697eede13207b60a66b72de573105b776d4 (diff) | |
download | netlink-notify-b769f4fc271f38318458ae9938f96cd2e6287452.tar.gz netlink-notify-b769f4fc271f38318458ae9938f96cd2e6287452.tar.zst |
use new icons, update build system
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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 |