# Abstract:
# Build demos
+include Makefile.var
+
MODELS=$(wildcard *.slx)
BUILD_DIRS=$(MODELS:%.slx=%_rpp)
-all: lib
+all: lib set-target
matlab -nojvm -r "try; rpp_build_demos(); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
%_rpp: %.slx lib
lib:
$(MAKE) -C ../lib rpp-lib.lib
-
+
+set-target:
+ matlab -nojvm -r "try; rpp_demos_set_tg($(rpp_target_file), $(rpp_demo_set)); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"
+
clean:
rm -rf $(BUILD_DIRS)