Re:Ask HN: In what creative ways are you using Makefiles?
by rv77ax on Monday July 24, 2017 @03:35PM
(#14841890)
I use makefile as the library package dependency [1], maybe like what package.json was in node environment.
The idea is if you want to use the library, you just include the makefile inside your project makefile, define a TARGET values and you will automatically have tasks for build, debug, etc.
The key is a hack on .SECONDEXPANSION pragma of GNU make, which means it's only work in GNU/Linux environment.
The idea is if you want to use the library, you just include the makefile inside your project makefile, define a TARGET values and you will automatically have tasks for build, debug, etc.
The key is a hack on .SECONDEXPANSION pragma of GNU make, which means it's only work in GNU/Linux environment.
[1] https://GitHub.com/shuLhan/libvos
Edit: ah, turn out I write some documentation about it here: http://kilabit.info/projects/libvos/doc/index.html