Commit ad1e9805 authored by Vaibhav Gupta's avatar Vaibhav Gupta

Makefile: Make it uniform with makefile of other projects.

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 5e94edd2
......@@ -8,22 +8,25 @@
REPO_PARENT ?= $(shell pwd)/..
-include $(REPO_PARENT)/parent_common.mk
all: modules tools
modules:
$(MAKE) -C drivers/zio
C_DIRS = drivers/zio \
tools
.PHONY: tools cppcheck
DIRS = $(C_DIRS) \
Documentation/core-api/zio \
Documentation/core-api/zio/img/Makefile
tools:
$(MAKE) -C tools
all clean: $(DIRS)
clean: TARGET = clean
# this make clean is ugly, I'm aware...
clean:
$(MAKE) -C drivers/zio clean
$(MAKE) -C tools clean
$(DIRS):
$(MAKE) -C $@ $(TARGET)
modules modules_install:
$(MAKE) -C drivers/zio $@
cppcheck:
$(MAKE) -C drivers/zio cppcheck
$(MAKE) -C tools cppcheck
for d in $(C_DIRS); do $(MAKE) -C $$d $@ || exit 1; done
.PHONY: all clean modules modules_install cppcheck
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