From 21648b45356a49c76d58acf3590bd98ad12b3d58 Mon Sep 17 00:00:00 2001 From: Andreas Ericsson Date: Sat, 22 Nov 2008 15:25:59 +0100 Subject: [PATCH] Make src/git/config.h a macro in Makefile This makes it far more convenient to reference as a dependency for other targets. Signed-off-by: Andreas Ericsson Signed-off-by: Shawn O. Pearce --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 29c52c3a0..e8919be60 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ OBJS = $(patsubst %.c,%.o,$(SRC_C)) HDRS = $(wildcard src/*.h) PUBLIC_HEADERS = $(wildcard src/git/*.h) HDRS += $(PUBLIC_HEADERS) +CONFIG_H = src/git/config.h OBJS += src/os/$(OS).o HDRS += src/git/config.h @@ -50,7 +51,7 @@ install-headers: $(PUBLIC_HEADERS) .c.o: $(CC) $(BASIC_CFLAGS) $(CFLAGS) -c $< -o $@ -src/git/config.h: src/git/config.h.in +$(CONFIG_H): $(CONFIG_H).in sed 's/@@OS@@/$(OS)/g' $< >$@+ mv $@+ $@