From 22dfe7233c920160e388e3843af795f9768b0d6e Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 4 May 2024 15:02:07 +0000 Subject: [PATCH] this is better git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@105 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bca282c..23dcaba 100644 --- a/Makefile +++ b/Makefile @@ -15,17 +15,19 @@ PREFIX_SO = lib .include "platforms/${PLATFORM}.mk" .endif -.PHONY: all ./Serenade ./Tool replace format +.PHONY: all ./Serenade ./Tool/config ./Tool replace format -all: ./Tool ./config.h ./Serenade +all: ./Tool ./Tool/config ./config.h ./Serenade ./Tool:: $(MAKE) -C ./Tool CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" SUFFIX="$(SUFFIX)" +./Tool/config:: + $(MAKE) -C ./Tool CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" SUFFIX="$(SUFFIX)" config + ./config.h: if [ ! -e ./Tool/configgen ]; then $(MAKE) ./Tool ; fi ./Tool/configgen $@ - $(MAKE) -C ./Tool CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" SUFFIX="$(SUFFIX)" config ./Serenade:: $(MAKE) -C ./Serenade CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" SUFFIX="$(SUFFIX)" EXTRA_OBJS="$(EXTRA_OBJS)" SUFFIX_SO="$(SUFFIX_SO)" PREFIX_SO="$(PREFIX_SO)" -- 2.43.0