Commit f9cbd123 authored by Federico Vaga's avatar Federico Vaga

sw: improve Makefile targets

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 5224fb1b
...@@ -4,14 +4,16 @@ ...@@ -4,14 +4,16 @@
REPO_PARENT ?= $(shell /bin/pwd)/.. REPO_PARENT ?= $(shell /bin/pwd)/..
-include $(REPO_PARENT)/parent_common.mk -include $(REPO_PARENT)/parent_common.mk
DIRS = kernel doc DIRS = kernel
.PHONY: all clean modules install modules_install $(DIRS) .PHONY: all clean modules install modules_install coccicheck $(DIRS)
all clean modules install modules_install: $(DIRS) all clean : $(DIRS)
install modules_install coccicheck modules: kernel
clean: TARGET = clean clean: TARGET = clean
modules: TARGET = modules modules: TARGET = modules
coccicheck: TARGET = coccicheck
install: TARGET = install install: TARGET = install
modules_install: TARGET = modules_install modules_install: TARGET = modules_install
......
...@@ -23,12 +23,17 @@ CHEBY ?= /usr/bin/cheby ...@@ -23,12 +23,17 @@ CHEBY ?= /usr/bin/cheby
all: modules all: modules
.PHONY: all modules clean help install modules_install svec-core-fpga.h .PHONY: all modules clean help install modules_install coccicheck svec-core-fpga.h
svec-core-fpga.h: svec-core-fpga.h:
$(CHEBY) --gen-c -i $(HDL_DIR)/rtl/svec_base_regs.cheby > $@ $(CHEBY) --gen-c -i $(HDL_DIR)/rtl/svec_base_regs.cheby > $@
modules help install modules_install: svec-core-fpga.h clean-spec-core-fpga.h:
rm -f spec-core-fpga.h
install: modules_install
clean: clean-spec-core-fpga.h
modules help coccichek modules_install: svec-core-fpga.h
$(MAKE) -C $(LINUX) M=$(shell pwd) \ $(MAKE) -C $(LINUX) M=$(shell pwd) \
VERSION=$(VERSION) \ VERSION=$(VERSION) \
VMEBRIDGE_ABS=$(VMEBRIDGE_ABS) \ VMEBRIDGE_ABS=$(VMEBRIDGE_ABS) \
...@@ -37,8 +42,3 @@ modules help install modules_install: svec-core-fpga.h ...@@ -37,8 +42,3 @@ modules help install modules_install: svec-core-fpga.h
FMC_ABS=$(FMC_ABS) \ FMC_ABS=$(FMC_ABS) \
I2C_ABS=$(I2C_ABS) \ I2C_ABS=$(I2C_ABS) \
$@ $@
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions Module.symvers \
Module.markers modules.order svec-core-fpga.h
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