title: How to avoid the make command triggers Xcode
body: <p>I have a python project that has a <code>makefile</code> which has</p>
  <pre><code>test: clean lint
      @pytest app/tests/ --cov ./app -s
  </code></pre>
  <p>I usually type <code>make test</code> in the terminal to trigger this <code>pytest</code>. However, recently it stopped working. Instead, I get an error</p>
  <pre><code>make: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2&gt; /dev/null' failed with exit code 256: (null) (errno=No such file or directory)
  </code></pre>
  <p>And MacOS pops up a message window saying it needs to download software (without details other than a progress bar). It takes ~10 min to finish installing. But it doesn't change anything. I have installed XCode although I never used it. <code>Pytest</code> still works if I directly type the pytest commands.</p>
  <p>My machine is a Macbook Pro with BigSur Intel CPU. I'm not a iOS/MacOS app developer and I don't use Xcode. I don't understand why would <code>make</code> triggers it. How to avoid it?</p>
  <hr />
  <p>More info following @MadScientist suggestion:</p>
  <pre><code>&gt; type -a make
  make is /usr/bin/make
  
  &gt; make --version
  OR
  &gt; make -d test
  xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun 
  
  &gt; /usr/bin/make
  xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
  </code></pre>