From 31f816b10f984de0b2232134c2ab7707907f1190 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 12 Jan 2018 17:54:07 +0100 Subject: Add makefile and remove cmake stuff from gitignore Note: the makefile just creates a build directory and invokes qmake --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..125e667 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +# Default qmake +QMAKE=$(shell command -v qmake) + +# On Fedora and other systems the binary has a different name +# QT5 is preferred +ifeq "$(QMAKE)" "" + QMAKE=$(shell command -v qmake-qt5) +endif + +# QT4 +ifeq "$(QMAKE)" "" + QMAKE=$(shell command -v qmake-qt4) +endif + + +# Build directory +BUILD_DIR=build + +.ONESHELL: +all: +ifeq "$(QMAKE)" "" + $(error "qmake is not installed") +else + echo "found qmake: $(QMAKE)" +endif + + mkdir -p $(BUILD_DIR) + cd $(BUILD_DIR) + $(QMAKE) -makefile .. + $(MAKE) clean all -- cgit v1.2.1