]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
Fail when required demos are missing (in the release)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2015 09:17:35 +0000 (11:17 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2015 10:57:50 +0000 (12:57 +0200)
rpp/demos/Makefile

index 0bdc2fdf06c75dd5558b569eeb48a5becebebd8f..9f2b7a827a39525b431756e5af726507abd3c3ec 100644 (file)
@@ -35,7 +35,7 @@ demos_hdk =                           \
        multirate_mt_hdk
 
 demos_hydctr =                         \
-       $(demo_hdk)                             \
+       $(demos_hdk)                    \
     board_init_hydctr
 
 demos_tms570_rpp =                              \
@@ -63,7 +63,9 @@ demos_tms570_rpp =                             \
 # Check that each demo is used for least one target
 all_demos = $(wildcard *.slx)
 unused_demos = $(filter-out $(sort $(demos_hdk) $(demos_hydctr) $(demos_tms570_rpp)),$(all_demos:%.slx=%))
+missing_demos = $(filter-out $(all_demos:%.slx=%),$(sort $(DEMOS)))
 $(if $(unused_demos),$(error Unused demos: $(unused_demos)))
+$(if $(missing_demos),$(error Missing demos: $(missing_demos)))
 
 all: lib
        matlab -nojvm -r "try; rpp_build_demos $(DEMOS); catch ME, disp(getReport(ME)); exit(1); end; exit(0)"