BUILD: Makefile: Implements the help target
Use the header of the Makefile to output the help target.
This commit is contained in:
parent
3301f3e5cd
commit
f1b60f78e0
3
Makefile
3
Makefile
@ -966,6 +966,9 @@ LIB_EBTREE = $(EBTREE_DIR)/libebtree.a
|
|||||||
INCLUDES = $(wildcard include/*/*.h ebtree/*.h)
|
INCLUDES = $(wildcard include/*/*.h ebtree/*.h)
|
||||||
DEP = $(INCLUDES) .build_opts
|
DEP = $(INCLUDES) .build_opts
|
||||||
|
|
||||||
|
help:
|
||||||
|
$(Q)sed -ne "/^[^#]*$$/q;s/^#\(.*\)/\1/p" Makefile
|
||||||
|
|
||||||
# Used only to force a rebuild if some build options change
|
# Used only to force a rebuild if some build options change
|
||||||
.build_opts: $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(VERBOSE_CFLAGS)\' > .build_opts.new; if cmp -s .build_opts .build_opts.new; then rm -f .build_opts.new; else mv -f .build_opts.new .build_opts; fi)
|
.build_opts: $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(VERBOSE_CFLAGS)\' > .build_opts.new; if cmp -s .build_opts .build_opts.new; then rm -f .build_opts.new; else mv -f .build_opts.new .build_opts; fi)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user