aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-17 20:55:35 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-17 20:55:35 +0200
commit112790a6fe54ae63f922f57fa698f6b7c2932724 (patch)
treec0da554f703cfd714b97e373525d3dd14f3ca8c2
parent951812d96ad6cf321a1d22142a7f807997ea9611 (diff)
downloadnetlink-notify-112790a6fe54ae63f922f57fa698f6b7c2932724.tar.gz
netlink-notify-112790a6fe54ae63f922f57fa698f6b7c2932724.tar.zst
build documentation
-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