Commit 3d1a4453 authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: simplify the makefile

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent cc5d2153
......@@ -7,9 +7,11 @@ REPO_PARENT ?= $(TOPDIR)/..
-include Makefile.specific
-include $(REPO_PARENT)/parent_common.mk
DIRS = include kernel tools
C_DIRS = kernel tools
.PHONY: all clean modules install modules_install coccicheck cppcheck $(DIRS)
DIRS = $(C_DIRS) include
.PHONY: all flawfinder clean modules install modules_install coccicheck cppcheck $(DIRS)
all install modules_install coccicheck modules: $(DIRS)
......@@ -17,17 +19,12 @@ modules: TARGET = modules
coccicheck: TARGET = coccicheck
install: TARGET = install
modules_install: TARGET = modules_install
clean: TARGET = clean
cppcheck:
$(MAKE) -C tools $@
headers:
$(MAKE) -C include $@
$(C_DIRS): include
$(DIRS): headers
$(DIRS):
$(MAKE) -C $@ $(ENV_VAR) $(TARGET)
clean:
$(MAKE) -C include $@
$(MAKE) -C kernel $@
$(MAKE) -C tools $@
flawfinder cppcheck:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
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