]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Makefile: Update rules to be able to includ them by Simulink
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 8 Jul 2015 22:17:19 +0000 (00:17 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 8 Jul 2015 22:17:19 +0000 (00:17 +0200)
We don't have to define any rules, because this rule will become default
goal and we don't want this.

build/Makefile.rules.arm

index cb4d9dd44baa09c976729356412ec0a390d53ee2..794f717b09f5557fffc32380b9f4d4000eb9233a 100644 (file)
@@ -77,5 +77,8 @@ RPP_LDFLAGS = \
 
 RPP_LDLIBS = $(makefile_rules_arm_dir)/$(TARGET)/$(TARGET_LDCMD) -l$(RPP_LIB_DIR)/rpp-lib.lib $(TARGET_LDLIBS)
 
+# Do not define any rules when compiling Simulink models
+ifeq ($(MATLAB_ROOT),)
 $(RPP_LIB_DIR)/rpp-lib.lib:
        $(MAKE) -C $(dir $@)
+endif