mirror of
https://github.com/tbsdtv/media_build.git
synced 2025-07-22 12:00:35 +02:00
make cleanall does a distclean for the top-level and the linux directory. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
37 lines
547 B
Makefile
37 lines
547 B
Makefile
BUILD_DIR := $(shell pwd)/v4l
|
|
TMP ?= /tmp
|
|
|
|
ifeq ($(EDITOR),)
|
|
ifeq ($(VISUAL),)
|
|
EDITOR := vi
|
|
else
|
|
EDITOR := $(VISUAL) -w
|
|
endif
|
|
endif
|
|
|
|
all:
|
|
|
|
install:
|
|
$(MAKE) -C $(BUILD_DIR) install
|
|
|
|
# Hmm, .PHONY does not work with wildcard rules :-(
|
|
SPECS = media-specs
|
|
|
|
.PHONY: $(SPECS)
|
|
|
|
$(SPECS):
|
|
$(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS)
|
|
|
|
%::
|
|
$(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS)
|
|
|
|
download untar::
|
|
$(MAKE) -C linux/ $(MAKECMDGOALS)
|
|
|
|
dir::
|
|
$(MAKE) -C linux/ $(MAKECMDGOALS) DIR="../$(DIR)"
|
|
|
|
cleanall:
|
|
$(MAKE) distclean
|
|
$(MAKE) -C linux distclean
|