aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-28 13:21:57 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-28 13:21:57 +0100
commit6c13003e4b90fb96f91c9010b98ae833af38b991 (patch)
tree23e90c283ed58f7dfc119ca0fb271d9596426af6 /Makefile
parent64a479c75322d78faf4f9bef26ba1d5e3f95dd85 (diff)
downloadpaccache-6c13003e4b90fb96f91c9010b98ae833af38b991.tar.gz
paccache-6c13003e4b90fb96f91c9010b98ae833af38b991.tar.zst
move configuration to config.h
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