summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 89b7f91..b46132e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
# netlink-notify - Notify about netlink changes
CC := gcc
+MD := markdown
CONVERT := inkscape --export-png
INSTALL := install
RM := rm
@@ -8,9 +9,9 @@ CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs libnotify)
VERSION = $(shell git describe --tags --long)
-all: binary icons
+all: netlink-notify icons README.html
-binary: netlink-notify.c
+netlink-notify: netlink-notify.c
$(CC) $(CFLAGS) -o netlink-notify netlink-notify.c \
-DVERSION="\"$(VERSION)\""
@@ -20,6 +21,9 @@ icons:
$(CONVERT) netlink-notify-address.png netlink-notify-address.svg
$(CONVERT) netlink-notify-away.png netlink-notify-away.svg
+README.html: README.md
+ $(MD) README.md > README.html
+
install:
$(INSTALL) -D -m0755 netlink-notify $(DESTDIR)/usr/bin/netlink-notify
$(INSTALL) -D -m0644 netlink-notify.desktop $(DESTDIR)/etc/xdg/autostart/netlink-notify.desktop
@@ -31,6 +35,13 @@ install:
$(INSTALL) -D -m0755 netlink-notify-down.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-down.png
$(INSTALL) -D -m0755 netlink-notify-address.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-address.png
$(INSTALL) -D -m0755 netlink-notify-away.png $(DESTDIR)/usr/share/icons/hicolor/48x48/status/netlink-notify-away.png
+ $(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/netlink-notify/README.md
+ $(INSTALL) -D -m0644 README.html $(DESTDIR)/usr/share/doc/netlink-notify/README.html
+ $(INSTALL) -D -m0644 screenshot-away.png $(DESTDIR)/usr/share/doc/netlink-notify/screenshot-away.png
+ $(INSTALL) -D -m0644 screenshot-down.png $(DESTDIR)/usr/share/doc/netlink-notify/screenshot-down.png
+ $(INSTALL) -D -m0644 screenshot-ip.png $(DESTDIR)/usr/share/doc/netlink-notify/screenshot-ip.png
+ $(INSTALL) -D -m0644 screenshot-ipv6.png $(DESTDIR)/usr/share/doc/netlink-notify/screenshot-ipv6.png
+ $(INSTALL) -D -m0644 screenshot-up.png $(DESTDIR)/usr/share/doc/netlink-notify/screenshot-up.png
clean:
- $(RM) -f *.o *.png *~ netlink-notify
+ $(RM) -f *.o *~ netlink-notify-*.png README.html netlink-notify