diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-17 20:55:35 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-17 20:55:35 +0200 |
commit | 112790a6fe54ae63f922f57fa698f6b7c2932724 (patch) | |
tree | c0da554f703cfd714b97e373525d3dd14f3ca8c2 /Makefile | |
parent | 951812d96ad6cf321a1d22142a7f807997ea9611 (diff) | |
download | netlink-notify-112790a6fe54ae63f922f57fa698f6b7c2932724.tar.gz netlink-notify-112790a6fe54ae63f922f57fa698f6b7c2932724.tar.zst |
build documentation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 |