From 9d6653672aa2657e60248835c1d3b2d6df723992 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 17:17:52 +0200 Subject: update Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2