# Copyright (C) 2013 Czech Technical University in Prague # # Authors: # - Michal Sojka # # This document contains proprietary information belonging to Czech # Technical University in Prague. Passing on and copying of this # document, and communication of its contents is not permitted # without prior written authorization. # # File : Makefile # Abstract: # Build demos MODELS=$(wildcard *.slx) BUILD_DIRS=$(MODELS:%.slx=%_rpp) all: lib matlab -nojvm -r "try; rpp_build_demos(); catch ME, disp(getReport(ME)); exit(1); end; exit(0)" %_rpp: %.slx lib matlab -nojvm -r "try; rpp_build_demos($<); catch ME, disp(getReport(ME)); exit(1); end; exit(0)" lib: $(MAKE) -C ../lib rpp-lib.lib clean: rm -rf $(BUILD_DIRS)