diff --git a/talos-simulation/Makefile b/talos-simulation/Makefile index f4e13c701ea139daa35594b4b55025f1d23f4bf6..f0c7ede88287cbdc9908ab0aa704eaaa64ad77db 100644 --- a/talos-simulation/Makefile +++ b/talos-simulation/Makefile @@ -35,9 +35,14 @@ include ../../middleware/ros-comm/depend.mk # Check if we on a pal distro include ../../wip/sysdep/pal-distro.mk -ifeq (palerbium,${PALDISTRO}) - # If yes then it does not make sense to continue - $(error "talos-simulation is useless on PAL erbium.") + +# PREFER.pal-distro gives the user the choice to compile +# over PAL packages or not. +ifeq (erbium,${PREFER.pal-distro}) + ifeq (palerbium,${PALDISTRO}) + # If yes then it does not make sense to continue + $(error "talos-simulation is useless on PAL erbium.") + endif endif include ../../motion/ros-control-toolbox/depend.mk