Mercurial > hg > beaglert
diff Makefile @ 274:cf98c06c72fd prerelease
merge
author | Liam Donovan <l.b.donovan@qmul.ac.uk> |
---|---|
date | Tue, 17 May 2016 16:42:02 +0100 |
parents | 247a182adb6d |
children | 4815ed0f21de 4475c0bc2aaa |
line wrap: on
line diff
--- a/Makefile Tue May 17 16:31:51 2016 +0100 +++ b/Makefile Tue May 17 16:42:02 2016 +0100 @@ -9,13 +9,13 @@ # set the project to be compiled by calling: make all PROJECT=<project_name> # if the PROJECT variable is not set, throw an error and exit -# otherwise, calling make clean without setting PROJECT results in entire projects directory being rm -rf'ed +# otherwise, we could have unexpected data loss when calling clean without it ifndef PROJECT - $(error PROJECT is not set) + $(error PROJECT is not set) endif PROJECT_DIR := $(abspath projects/$(PROJECT)) - +$(shell mkdir -p $(PROJECT_DIR)/build) RM := rm -rf STATIC_LIBS := ./libprussdrv.a ./libNE10.a LIBS := -lrt -lnative -lxenomai -lsndfile