Commit 79c9d3f9 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

build: properly clean all subprojects (and don't install lib; it has no rule)

parent 03e6df40
SUBDIRS = driver include lib drvrtest test pylib test_vetar
all: $(SUBDIRS)
clean: driver-clean drvrtest-clean include-clean lib-clean test-clean pylib-clean
install: driver-install lib-install
$(SUBDIRS):
$(MAKE) -C $@
driver-install:
$(MAKE) -C driver install
lib-install:
$(MAKE) -C lib install
pylib-clean:
$(MAKE) -C pylib clean
driver-clean:
$(MAKE) -C driver clean
drvrtest-clean:
$(MAKE) -C drvrtest clean
include-clean:
$(MAKE) -C include clean
lib-clean:
$(MAKE) -C lib clean
test-clean:
$(MAKE) -C test clean
.PHONY: $(SUBDIRS)
all: $(SUBDIRS:=-all)
clean: $(SUBDIRS:=-clean)
install: driver-install
%-all:
$(MAKE) -C $* all
%-clean:
$(MAKE) -C $* clean
%-install:
$(MAKE) -C $* install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment