Files
media_build/Makefile.dkms
2021-04-07 19:02:17 +03:00

23 lines
421 B
Makefile

#
# Will be executed by the DKMS system, with
# KERNELRELEASE and MEDIA_INST_DIR
# set.
#
ifneq ($(MAKECMDGOALS),clean)
ifeq ($(KERNELRELEASE),)
$(error KERNELRELEASE not set)
endif
endif
ifeq ($(MEDIA_INST_DIR),)
$(error MEDIA_INST_DIR not set)
endif
build:
VER=$(KERNELRELEASE) ./build_all.sh $(MEDIA_INST_DIR) -db
clean:
VER=$(KERNELRELEASE) ./build_all.sh $(MEDIA_INST_DIR) -dc
.PHONY: build clean