group := kernel version := $(shell Xorg -version 2>&1 | grep Server | cut -d " " -f4) xorgAddons := $(shell ls -d ../xorg-* | grep -v autodetect) driversDir = $(modul)/lib/modules/$(KERNEL) include ../Makefile.default include ../Makefile.tools all: $(modul).$(suffix) clean: _clean $(modul): $(addsuffix /$(driversDir), $(xorgAddons)) $(addon) mkdir -p $(driversDir)/ cp $(addsuffix /$(driversDir)/modules.*, $(xorgAddons)) $(driversDir) 2>/dev/null || true mv -f $@/lib/modules/modules.pcimap.* $(driversDir) 2>/dev/null || true $(addsuffix /$(driversDir), $(xorgAddons)): $(MAKE) ../$(word 2,$(subst /, ,$@)) || true $(MAKE) -C ../$(word 2,$(subst /, ,$@)) || true