]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/demos/Makefile
Merge branch 'maint-rm48' into rm48/master
[pes-rpp/rpp-simulink.git] / rpp / demos / Makefile
1 # Copyright (C) 2013 Czech Technical University in Prague
2 #
3 # Authors:
4 #     - Michal Sojka <sojkam1@fel.cvut.cz>
5 #
6 # This document contains proprietary information belonging to Czech
7 # Technical University in Prague. Passing on and copying of this
8 # document, and communication of its contents is not permitted
9 # without prior written authorization.
10 #
11 # File : Makefile
12 # Abstract:
13 #     Build demos
14
15 MODELS=$(wildcard *.slx)
16 BUILD_DIRS=$(MODELS:%.slx=%_rpp)
17
18 all: lib
19         matlab -nojvm -r "try; rpp_build_demos(); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
20
21 %_rpp: %.slx lib
22         matlab -nojvm -r "try; rpp_build_demos($<); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
23
24 lib:
25         $(MAKE) -C ../lib rpp-lib.lib
26
27 clean:
28         rm -rf $(BUILD_DIRS)