If you use the Makefile to run commands (which is a bad way, but nobody cares), this script makes it possible to run from child folders.
rmake rule
— run rule from nearest Makefilermake --dot rule
— run rule from nearest Makefile with .rootmake file in the same folder
Structure:
-
:root
- Makefile
- .rootmake
- alpha
- Makefile
- delta
- Makefile
- beta
- gamma
-
cd :root
-
rmake rule
— run rule from/Makefile
-
cd alpha/delta
-
rmake rule
– run rule from/alpha/Makefile
-
rmake --dot rule
– run rule from/Makefile
-
cd :root
-
cd beta
-
rmake rule
– run rule from/Makefile
-
cd gamma
-
rmake rule
– run rule from/Makefile