Fixed a circular dependency in Makefile.
This commit is contained in:
parent
6308ee1cd4
commit
e5ea933f04
6
Makefile
6
Makefile
@ -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)
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user