Makefile 475 Bytes
Newer Older
1

2 3 4
# We have a problem here: this package may be a submodule of something
# else (for example: fine-delay). If this is the case, fmc-bus is on ../
# This external script returns the pathname of the "kernel" subdir of fmc-bus
5 6
FMC_DRV ?= $(shell ./check-fmc-bus)
export FMC_DRV
7

8 9
RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)

10
DIRS = $(FMC_DRV) kernel tools
11

12
all clean modules install modules_install:
13
	for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done