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 SUBDIRS = driver include lib drvrtest test pylib test_vetar
all: $(SUBDIRS) all: $(SUBDIRS:=-all)
clean: driver-clean drvrtest-clean include-clean lib-clean test-clean pylib-clean clean: $(SUBDIRS:=-clean)
install: driver-install lib-install install: driver-install
$(SUBDIRS): %-all:
$(MAKE) -C $@ $(MAKE) -C $* all
driver-install: %-clean:
$(MAKE) -C driver install $(MAKE) -C $* clean
lib-install: %-install:
$(MAKE) -C lib install $(MAKE) -C $* 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)
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