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)