summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: e578e8b46c24fce432efd3501dbdb92d4e0e00ef (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# mpd-notification - Notify about tracks played by mpd

CC	:= gcc
CFLAGS	+= $(shell pkg-config --cflags --libs libmpdclient) \
	   $(shell pkg-config --cflags --libs libnotify)
VERSION	= $(shell git describe --tags --long)

all: mpd-notification.c
	$(CC) $(CFLAGS) -o mpd-notification mpd-notification.c \
		-DVERSION="\"$(VERSION)\""

clean:
	/bin/rm -f *.o *~ mpd-notification