diff options
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 |