From 904cdf2b5acb2059d92b46f6e7b3ff40194ea4f3 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Fri, 13 Jan 2017 08:42:23 +0100 Subject: [PATCH] Makefile now builds spintrum and installs it --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 12b46d4..d5e0ab8 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,18 @@ default: - chmod +x ./run_build.sh - chmod +x ./run_install.sh - ./run_build.sh + ./get_resources.sh + mkdir -p build + cd build && cmake .. && make + @echo "\033[0;37;44mYou can now copy the directory \033[0;37;40mspintrum\033[0;37;44m to your Python installation.\033[0m" + python3 setup.py sdist + @echo "\033[0;37;44mYou can now copy the directory \033[0;37;40mspintrum\033[0;37;44m to your Python installation.\033[0m" + @echo "\033[0;37;44mOr you can now use \033[0;37;40mmake install\033[0;37;44m to install to your Python3 using pip3\033[0m" + install: - ./run_install.sh + pip3 install dist/spintrum* --upgrade clean: + rm -rf 3rdparty rm -rf dist rm -rf build/* rm -rf __pycache__