Fixed a circular dependency in Makefile.

This commit is contained in:
LoRd_MuldeR 2022-12-05 00:59:45 +01:00
parent 6308ee1cd4
commit e5ea933f04
2 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,10 @@
SUBDIRS := libhashset example test SUBDIRS := libhashset example test
.PHONY: all clean test $(SUBDIRS) .PHONY: all clean $(SUBDIRS)
all clean test: $(SUBDIRS) all clean: $(SUBDIRS)
example test: libhashset
$(SUBDIRS): $(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS) $(MAKE) -C $@ $(MAKECMDGOALS)

View File

@ -14,9 +14,7 @@ DLL_FILE := $(LIB_PATH)/libhashset-1$(DLL_SUFFIX)
.PHONY: all build clean test .PHONY: all build clean test
all: clean build all test: clean build
test: build
build: $(ALL_PATH) $(LIB_FILE) $(DLL_FILE) build: $(ALL_PATH) $(LIB_FILE) $(DLL_FILE)