From e5ea933f04723b42c6e8d058aba3a8c31a132642 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 5 Dec 2022 00:59:45 +0100 Subject: [PATCH] Fixed a circular dependency in Makefile. --- Makefile | 6 ++++-- libhashset/Makefile | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bb6f7a8..2efd8e9 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ SUBDIRS := libhashset example test -.PHONY: all clean test $(SUBDIRS) +.PHONY: all clean $(SUBDIRS) -all clean test: $(SUBDIRS) +all clean: $(SUBDIRS) + +example test: libhashset $(SUBDIRS): $(MAKE) -C $@ $(MAKECMDGOALS) diff --git a/libhashset/Makefile b/libhashset/Makefile index bc1af94..8c42042 100644 --- a/libhashset/Makefile +++ b/libhashset/Makefile @@ -14,9 +14,7 @@ DLL_FILE := $(LIB_PATH)/libhashset-1$(DLL_SUFFIX) .PHONY: all build clean test -all: clean build - -test: build +all test: clean build build: $(ALL_PATH) $(LIB_FILE) $(DLL_FILE)