magma build rules