]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/demos/Makefile
Merge branch 'master' of rtime.felk.cvut.cz:jenkicar/rpp-simulink
[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 include Makefile.var
16
17 MODELS=$(wildcard *.slx)
18 BUILD_DIRS=$(MODELS:%.slx=%_rpp)
19
20 all: lib set-target
21         matlab -nojvm -r "try; rpp_build_demos(); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
22
23 %_rpp: %.slx lib
24         matlab -nojvm -r "try; rpp_build_demos($<); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
25
26 lib:
27         $(MAKE) -C ../lib rpp-lib.lib
28         
29 set-target:
30         matlab -nojvm -r "try; rpp_demos_set_tg($(rpp_target_file), $(rpp_demo_set)); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
31         
32 clean:
33         rm -rf $(BUILD_DIRS)