diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-08 17:17:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-08 17:17:52 +0200 |
commit | 9d6653672aa2657e60248835c1d3b2d6df723992 (patch) | |
tree | 1f6f5194acef60297ad8197a2ba06ffc0f8a97b1 /Makefile | |
parent | fd700992890bb582bff400f0afc69e811ebb49e7 (diff) | |
download | mpd-notification-9d6653672aa2657e60248835c1d3b2d6df723992.tar.gz mpd-notification-9d6653672aa2657e60248835c1d3b2d6df723992.tar.zst |
update Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,8 @@ # mpd-notification - Notify about tracks played by mpd CC := gcc +INSTALL := install +RM := rm CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libmpdclient) \ $(shell pkg-config --cflags --libs libnotify) @@ -10,5 +12,8 @@ all: mpd-notification.c $(CC) $(CFLAGS) -o mpd-notification mpd-notification.c \ -DVERSION="\"$(VERSION)\"" +install: + $(INSTALL) -D -m0755 mpd-notification $(DESTDIR)/usr/bin/mpd-notification + $(INSTALL) -D -m0644 mpd-notification.desktop $(DESTDIR)/etc/xdg/autostart/mpd-notification.desktop clean: - /bin/rm -f *.o *~ mpd-notification + $(RM) -f *.o *~ mpd-notification |