From 6c13003e4b90fb96f91c9010b98ae833af38b991 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Oct 2013 13:21:57 +0100 Subject: move configuration to config.h --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf