Makefile: Improve dependency handling
Makefile: Improve dependency handling

References:
- http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
- GNU make manual

roshbaby/stm8s-optical-slave-trigger,roshbaby/stm8s-optical-slave-trigger,roshbaby/stm8s-optical-slave-trigger