summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:17:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:17:52 +0200
commit9d6653672aa2657e60248835c1d3b2d6df723992 (patch)
tree1f6f5194acef60297ad8197a2ba06ffc0f8a97b1
parentfd700992890bb582bff400f0afc69e811ebb49e7 (diff)
downloadmpd-notification-9d6653672aa2657e60248835c1d3b2d6df723992.tar.gz
mpd-notification-9d6653672aa2657e60248835c1d3b2d6df723992.tar.zst
update Makefile
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4b859b0..fc31da3 100644
--- a/Makefile
+++ b/Makefile
@@ -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