2022-11-28 17:46:49 +01:00
|
|
|
SUBDIRS := libhashset example test
|
2022-11-20 18:02:12 +01:00
|
|
|
|
2022-11-27 19:46:01 +01:00
|
|
|
BUILD_ALL := $(patsubst %,build\:%,$(SUBDIRS))
|
|
|
|
CLEAN_ALL := $(patsubst %,clean\:%,$(SUBDIRS))
|
2022-11-20 18:02:12 +01:00
|
|
|
|
2022-11-30 18:03:42 +01:00
|
|
|
.PHONY: all test clean $(BUILD_ALL) $(CLEAN_ALL)
|
2022-11-20 18:02:12 +01:00
|
|
|
|
2022-11-25 13:36:53 +01:00
|
|
|
all: $(BUILD_ALL)
|
|
|
|
|
|
|
|
clean: $(CLEAN_ALL)
|
|
|
|
|
|
|
|
$(BUILD_ALL):
|
2022-11-27 19:46:01 +01:00
|
|
|
$(MAKE) -C $(patsubst build:%,%,$@)
|
2022-11-25 13:36:53 +01:00
|
|
|
|
|
|
|
$(CLEAN_ALL):
|
2022-11-27 19:46:01 +01:00
|
|
|
$(MAKE) -C $(patsubst clean:%,%,$@) clean
|
2022-11-30 18:03:42 +01:00
|
|
|
|
|
|
|
test: $(BUILD_ALL)
|
|
|
|
$(MAKE) -C test test
|