From 2cccbd91beda0145fe89ba70af8d675029191d4d Mon Sep 17 00:00:00 2001 From: Jochen Wilhelmy Date: Sun, 19 Apr 2020 14:18:32 +0200 Subject: [PATCH] Add CMAKEFLAGS and install target --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b44bd70c..9bdea88a9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ ## # This Makefile is used to drive building of Debug and Release targets of CMake ## -MAKEFLAGS += -s + +# additional flags for cmake, e.g. install path -DCMAKE_INSTALL_PREFIX=$(HOME)/.local +CMAKEFLAGS += all: release ci: debug release binary test @@ -10,6 +12,8 @@ help: @echo " debug: Run a debug build" @echo " release: Run a release build" @echo " binary: Build Windows-Binary" + @echo " install: Install release build" + @echo " package: Package release build" @echo " lint: Lint check all source-code" @echo " test: Build and run tests" @echo " clean: Clean all build output" @@ -32,6 +36,10 @@ binary: build/Binary @echo "[BINARY]" @$(MAKE) -C build/Binary +install: build/Release + @echo "[INSTALL] Release" + @$(MAKE) -C build/Release install + package: build/Release @echo "[PACKAGE] Release" @$(MAKE) -C build/Release package