Commit 034242ae authored by Federico Vaga's avatar Federico Vaga

Makefile: use absolute path to module and export FMC_BUS

So, the FMC_BUS reference can be used by submodules like spec-sw and
svec-sw.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b3a7f0b2
......@@ -13,6 +13,7 @@ all modules: prereq
clean_all: clean prereq_clean
#### The following targets are used to manage prerequisite repositories
#### only for THIS repository
gitmodules:
@test -d fmc-bus/doc || echo "Checking out submodules"
@test -d fmc-bus/doc || git submodule update --init
......@@ -21,9 +22,13 @@ gitmodules:
# three submodules. Note that svec-sw is not built, as it uses cern-internal
# pathnames, and thus won't build elsewhere. We have it as a submodule to
# find needed headers to build kernel code.
FMC_BUS ?= fmc-bus
ZIO ?= zio
SPEC_SW ?= spec-sw
#
# Use the absolute path so it can be used by submodule
CURDIR ?= $(shell pwd)
FMC_BUS ?= $(CURDIR)/fmc-bus
export FMC_BUS
ZIO ?= $(CURDIR)/zio
SPEC_SW ?= $(CURDIR)/spec-sw
SUBMOD = $(FMC_BUS) $(ZIO) $(SPEC_SW)
prereq:
......
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