Simplify root Makefile to just invoke cmake for everything

* It was building qrenderdoc separately for no good reason that I can
  tell.
This commit is contained in:
baldurk
2016-09-14 16:56:45 +02:00
parent 66bb732027
commit 289289d2a1
+4 -10
View File
@@ -1,19 +1,13 @@
SRC_DIR := $(shell pwd)
DST_DIR := $(SRC_DIR)/build
CMAKE_PARAMS :=
.PHONY: all clean renderdoc qrenderdoc
.PHONY: all clean
all: renderdoc qrenderdoc
all: renderdoc
@ln -sf "$(DST_DIR)/bin"
renderdoc:
@mkdir -p "$(DST_DIR)" && cd "$(DST_DIR)" && \
cmake -DENABLE_QRENDERDOC=OFF "$(SRC_DIR)" && \
$(MAKE)
qrenderdoc: renderdoc
@mkdir -p "$(DST_DIR)"/qrenderdoc && cd "$(DST_DIR)"/qrenderdoc && \
qmake "CONFIG+=debug" "DESTDIR=$(DST_DIR)/bin" "$(SRC_DIR)"/qrenderdoc && \
cmake $(CMAKE_PARAMS) "$(SRC_DIR)" && \
$(MAKE)
clean: