]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blob - rpp/demos/Makefile
Merge branch 'master' of rtime.felk.cvut.cz:jenkicar/rpp-simulink
[jenkicar/rpp-simulink.git] / rpp / demos / Makefile
1 MODELS=$(wildcard *.slx)
2 BUILD_DIRS=$(MODELS:%.slx=%_rpp)
3
4 all: lib
5         matlab -nojvm -r "try; rpp_build_demos(); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
6
7 %_rpp: %.slx lib
8         matlab -nojvm -r "try; rpp_build_demos($<); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
9
10 lib:
11         $(MAKE) -C ../lib rpp-lib.lib
12
13 clean:
14         rm -rf $(BUILD_DIRS)