aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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