diff options
Diffstat (limited to 'build/cli/cli-cxx.make')
-rw-r--r-- | build/cli/cli-cxx.make | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/cli/cli-cxx.make b/build/cli/cli-cxx.make index 09aa719..49cc97f 100644 --- a/build/cli/cli-cxx.make +++ b/build/cli/cli-cxx.make @@ -17,12 +17,18 @@ $(cli_pattern): cli_options := .PRECIOUS: $(cli_pattern) -$(cli_pattern): $(out_base)/%.cli | $$(dir $$@). +ifeq ($(out_base),$(src_base)) + +$(cli_pattern): $(src_base)/%.cli $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<) -ifneq ($(out_base),$(src_base)) +else + $(cli_pattern): $(src_base)/%.cli | $$(dir $$@). $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<) + +$(cli_pattern): $(out_base)/%.cli | $$(dir $$@). + $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<) endif .PHONY: $(out_base)/%.cxx.cli.clean |