Commit 16a36c61 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

Allow for binaries not built by default

parent b13f0cfe
# Generate lists of targets and other things
$(eval $(foreach BINARY,$(BINARIES),$(call REGISTER_BIN,$(BINARY))))
$(eval $(foreach BINARY,$(BINARIES_NOTARGET),$(call REGISTER_BINARY_NOTARGET,$(BINARY))))
$(eval $(foreach LIB,$(LIBRARIES),$(call REGISTER_LIB,$(LIB))))
$(eval $(foreach LUA_FILE,$(LUA),$(call REGISTER_LUA,$(LUA_FILE))))
ifndef NO_DOC
......
......@@ -99,6 +99,16 @@ $(O)/$(1): $(O)/bin/$$(notdir $(1))
endef
define REGISTER_BINARY_NOTARGET
$(call COMMON_REGISTER,$(O)/bin/$$(notdir $(1)),$$(notdir $(1)),$$(dir $(1)))
$(O)/$(1): $(O)/bin/$$(notdir $(1))
$(M) LN $$@
$(Q)mkdir -p $$(dir $(O)/$(1))
$(Q)ln -sf $$(abspath $$<) $$@
endef
# Similar, for libraries
define REGISTER_LIB
......
......@@ -79,7 +79,9 @@ following code:
Only the `_SOURCES` variable is mandatory. You can create a shared
library the same way, it is only appended to `LIBRARIES` instead to
`BINARIES`.
`BINARIES`. Also, if you want to let the build system know about a
binary, but not build it by default (needed for the `check` target,
for example), you can use `BINARIES_NOTARGET`.
You can also generate documentation (`html` from the `txt` by
asciidoc). It has no variables to influence it and you append them to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment