From 7fd0c254f1d2fdce3d311f33ef4378eff2f952be Mon Sep 17 00:00:00 2001 From: Schoumi Date: Wed, 7 Sep 2022 05:46:26 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Makefile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update makefile to check if yotta is installed --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f2bf3c3..bece00b 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ all: build -patch: - @sed -i "s/VERSION 2.8.11/VERSION 3.0.0/" ~/.local/lib/python3.6/site-packages/yotta/lib/templates/subdir_CMakeLists.txt - @sed -i "s/VERSION 2.8.11/VERSION 3.0.0/" ~/.local/lib/python3.6/site-packages/yotta/lib/templates/base_CMakeLists.txt - @sed -i "s/^cmake_policy(SET CMP0017 OLD)/#cmake_policy(SET CMP0017 OLD)/" ~/.local/lib/python3.6/site-packages/yotta/lib/templates/base_CMakeLists.txt +VERSION := $(shell yt --version 2> /dev/null) -build: patch +check: +ifeq($VERSION),) + @echo you should use before trying anything: source /sync/Module_Dev_App_Mobile/yotta/bin/activate + @false +endif + +build: @yt build install: