Compiling NEMO 5.x with a nested domain

I am trying to compile NEMO 5.x with a nested domain, but I do not need TOP and ICE modules.
As far as I understand I should use
./makenemo -m linux_ifort -r AGRIF_DEMO -n MY_OCE_agrif -j 8 del_key “key_top key_si3”
Is this a correct way to compile?

Yes, it is correct.

I would prefer to use --del_key instead of del_key, just because this syntaxe is more coherent with the way we define the other options.

You could also add --comp "OCE NST" to specify that you will compile only the files contained in OCE and NST directories instead of files contained the 4 OCE, ICE, TOP and NST directories as defined in AGRIF_DEMO. This will speedup the compilation phase. Note that this speedup won’t be very large as, without key_top and key_si3, the code to be compiled in the TOP and in ICE directories will be mostly empty.