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
|
||||
|
||||
.PHONY: all clean test $(SUBDIRS)
|
||||
.PHONY: all clean $(SUBDIRS)
|
||||
|
||||
all clean test: $(SUBDIRS)
|
||||
all clean: $(SUBDIRS)
|
||||
|
||||
example test: libhashset
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@ $(MAKECMDGOALS)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user