#
# Top level makefile for the NVIDIA kernel module; this file selects
# which "real" Makefile should actually be used to build the kernel
# module (either the "old" nvidia Makefile, or the kbuild makefile),
# and then passes the target on to that Makefile.
#

.PHONY: select_makefile
select_makefile:
	@ sh ./conftest.sh select_makefile

default: module

module nvidia.o nvidia.ko install nv-linux.o clean module-install package-install print-module-filename: select_makefile
	@ $(MAKE) --no-print-directory -f Makefile $@
