aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-25 09:13:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-25 09:13:15 +0200
commit389c123beb48dab2c8a179b86e4f697b6bbd6c4d (patch)
treece78363bdd6a0c297b6c6d3a8de0ebc7e0bd55fe /Makefile
parent376da7534b1065febfd878a40a14ba6d981ea35b (diff)
downloadmpd-notification-389c123beb48dab2c8a179b86e4f697b6bbd6c4d.tar.gz
mpd-notification-389c123beb48dab2c8a179b86e4f697b6bbd6c4d.tar.zst
introduce config.h
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