ifeq (, $(wildcard $(BUILD_TOOLS_DIR)/composer.phar))
is evaluated before any targets are build.
Therefore the file still exists.
It is only removed later when the dist-clean target is build.
Use a file prerequisit instead.
This is evaluated when the target is build.
🖼️ Screenshots
🏚️ Before
🏡 After
🏁 Checklist
[x] Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
📝 Summary
ifeq (, $(wildcard $(BUILD_TOOLS_DIR)/composer.phar))
is evaluated before any targets are build. Therefore the file still exists. It is only removed later when thedist-clean
target is build.Use a file prerequisit instead. This is evaluated when the target is build.
🖼️ Screenshots
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)