Fix #927: Use a macro to automatically depend on right artifact
Merge pull request #946 from gzm0/auto-dependency

Fix #927: Use a macro to automatically depend on right artifact