aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10b49b8..571417b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
CC := gcc
MD := markdown
INSTALL := install
+CP := cp
RM := rm
CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs libmpdclient) \
@@ -11,10 +12,13 @@ VERSION = $(shell git describe --tags --long)
all: mpd-notification README.html
-mpd-notification: mpd-notification.c
+mpd-notification: mpd-notification.c config.h
$(CC) $(CFLAGS) -o mpd-notification mpd-notification.c \
-DVERSION="\"$(VERSION)\""
+config.h:
+ $(CP) config.def.h config.h
+
README.html: README.md
$(MD) README.md > README.html