From: Nathael Pajani Date: Wed, 17 Dec 2014 17:25:54 +0000 (+0100) Subject: Make the apps Makefiles "app independent" This makes it easier to create new apps... X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=e588ba7eb94cbb6c2ec9ed874c460e408ea65c65;p=soft%2Flpc122x%2Fcore Make the apps Makefiles "app independent" This makes it easier to create new apps by copying the app directory. --- diff --git a/Makefile b/Makefile index 5cf8955..009719c 100644 --- a/Makefile +++ b/Makefile @@ -62,3 +62,17 @@ clean: mrproper: clean rm -f apps/*/*.bin apps/*/*.elf apps/*/*.map + + +# Some notes : +# The command "make -f /path/to/here/Makefile app_name" does not work, as well +# as the command "make -f /path/to/here/apps/app_name/Makefile". +# This coul dbe solved in the app Makefiles by replacing +# "NAME = $(shell basename $(CURDIR))" +# with +# "NAME = $(shell basename $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))" +# and possibly some similar trick for the base Makefile but this is just +# unreadable and moslty unusefull, so it won't be supported. +# Use "make -C /path/to/here/ app_name" or "make -C /path/to/here/apps/app_name" +# instead. + diff --git a/README b/README index 211f1bd..c49c96b 100644 --- a/README +++ b/README @@ -10,8 +10,8 @@ Example applications are created in the apps directory, with one sub-directory for each application. These are (and must stay) independent. More usefull stuff is up to you. Creating an app is *very* simple. Copy -an example from apps/ to the name you want and simply change "NAME" in the -Makefile to the name of your new directory. Please, no spaces in the name ! +an example from apps/ to the name you want and start coding. +** Please, no spaces (or special characters) in the directory name ! ** ********************