mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-19 18:39:26 +00:00
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 <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
c6ebb4a940
commit
21648b4535
3
Makefile
3
Makefile
@ -13,6 +13,7 @@ OBJS = $(patsubst %.c,%.o,$(SRC_C))
|
|||||||
HDRS = $(wildcard src/*.h)
|
HDRS = $(wildcard src/*.h)
|
||||||
PUBLIC_HEADERS = $(wildcard src/git/*.h)
|
PUBLIC_HEADERS = $(wildcard src/git/*.h)
|
||||||
HDRS += $(PUBLIC_HEADERS)
|
HDRS += $(PUBLIC_HEADERS)
|
||||||
|
CONFIG_H = src/git/config.h
|
||||||
|
|
||||||
OBJS += src/os/$(OS).o
|
OBJS += src/os/$(OS).o
|
||||||
HDRS += src/git/config.h
|
HDRS += src/git/config.h
|
||||||
@ -50,7 +51,7 @@ install-headers: $(PUBLIC_HEADERS)
|
|||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(BASIC_CFLAGS) $(CFLAGS) -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' $< >$@+
|
sed 's/@@OS@@/$(OS)/g' $< >$@+
|
||||||
mv $@+ $@
|
mv $@+ $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user