added catchall to trigger usage

pull/2/head
Hari Sekhon 5 years ago
parent 3afcdc67a0
commit c0442fb1c4

@ -112,6 +112,11 @@ endef
export MAKEFILE_USAGE_COMMON
export MAKEFILE_USAGE
# doesn't seem to work
#.DEFAULT: build
# @echo running default
# $(MAKE) build
.PHONY: default
default:
@# putting this here instead of inline dep because otherwise check_makefile.sh will fail the target as build target doesn't exist in this Makefile.in
@ -131,6 +136,14 @@ help:
usage: help
@:
# catchall - any unrecognized target will print usage
%::
@{ \
echo Unrecognized option $@; \
echo; \
$(MAKE) usage; \
} | less -RFXig
.PHONY: quick
quick:
QUICK=1 $(MAKE) build

Loading…
Cancel
Save