LibHashSet/Makefile

20 lines
372 B
Makefile
Raw Normal View History

SUBDIRS := libhashset example test
2022-11-20 18:02:12 +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):
$(MAKE) -C $(patsubst build:%,%,$@)
2022-11-25 13:36:53 +01:00
$(CLEAN_ALL):
$(MAKE) -C $(patsubst clean:%,%,$@) clean
2022-11-30 18:03:42 +01:00
test: $(BUILD_ALL)
$(MAKE) -C test test