Files
media_build/Makefile
Hans Verkuil 35eaca75f1 Add a top-level cleanall target.
make cleanall does a distclean for the top-level and the linux directory.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2012-08-17 14:15:51 +02:00

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