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 1bb8d07..3425dd1 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
CC := gcc
MD := markdown
INSTALL := install
+CP := cp
RM := rm
SED := sed
CFLAGS += -O2 -Wall -Werror
@@ -19,10 +20,13 @@ endif
all: pacredir pacdbserve README.html
-pacredir: pacredir.c
+pacredir: pacredir.c config.h
$(CC) $(CFLAGS) -o pacredir pacredir.c \
-DVERSION="\"$(VERSION)\""
+config.h:
+ $(CP) config.def.h config.h
+
pacdbserve: avahi/pacdbserve.service.in
$(SED) 's/%ARCH%/$(ARCH)/' avahi/pacdbserve.service.in > avahi/pacdbserve.service