Add test target in meta makefile
This commit is contained in:
parent
46201bbf59
commit
9f92308131
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -7,9 +7,14 @@ build: $(SUBDIRS)
|
||||||
$(MAKE) -j$(nproc) -C $$dir; \
|
$(MAKE) -j$(nproc) -C $$dir; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
test: $(SUBDIRS) build
|
||||||
|
@for dir in $(SUBDIRS); do \
|
||||||
|
$(MAKE) -j$(nproc) test -C $$dir; \
|
||||||
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for dir in $(SUBDIRS); do \
|
@for dir in $(SUBDIRS); do \
|
||||||
make -C $$dir clean; \
|
make -C $$dir clean; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: build clean
|
.PHONY: build clean test
|
||||||
|
|
Loading…
Reference in a new issue