squash! Makefile: run CMake with CMAKE_ARGS defined
Only if specified on command line.
This commit is contained in:
parent
1535934ef9
commit
415c92a08a
4
Makefile
4
Makefile
|
@ -14,8 +14,8 @@ cmake-build: $(BUILDDIR)/Makefile
|
||||||
$(ECHO) "Building…"
|
$(ECHO) "Building…"
|
||||||
$(MAKE) -C $(BUILDDIR)
|
$(MAKE) -C $(BUILDDIR)
|
||||||
|
|
||||||
# Run CMake always with CMAKE_ARGS defined.
|
# Run CMake with CMAKE_ARGS defined on command line ("make CMAKE_ARGS=…").
|
||||||
ifdef CMAKE_ARGS
|
ifeq ($(origin CMAKE_ARGS),command line)
|
||||||
.PHONY: $(BUILDDIR)/Makefile
|
.PHONY: $(BUILDDIR)/Makefile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue