diff --git a/Makefile b/Makefile
index 1085338d179192115a94cdd52c728052c5a65c91..e059893214f89a234bdfa7d12f02dc7ae5afbd2c 100644
--- a/Makefile
+++ b/Makefile
@@ -152,6 +152,9 @@ posix_sitl_lpe:
 posix_sitl_ekf2:
 	$(call cmake-build,$@)
 
+posix_sitl_replay:
+	$(call cmake-build,$@)
+
 ros_sitl_default:
 	@echo "This target is deprecated. Use make 'posix_sitl_default gazebo' instead."
 
@@ -199,7 +202,7 @@ clean:
 
 # targets handled by cmake
 cmake_targets = test upload package package_source debug debug_tui debug_ddd debug_io debug_io_tui debug_io_ddd check_weak \
-	run_cmake_config config gazebo gazebo_gdb gazebo_lldb jmavsim \
+	run_cmake_config config gazebo gazebo_gdb gazebo_lldb jmavsim replay \
 	jmavsim_gdb jmavsim_lldb gazebo_gdb_iris gazebo_lldb_tailsitter gazebo_iris gazebo_iris_opt_flow gazebo_tailsitter \
 	gazebo_gdb_standard_vtol gazebo_lldb_standard_vtol gazebo_standard_vtol
 $(foreach targ,$(cmake_targets),$(eval $(call cmake-targ,$(targ))))