I would like several files to be copied from "folderA" to "folderB" automatically after each "make".
Does anyone know how to add a post-build line into the makefile?
I would like several files to be copied from "folderA" to "folderB" automatically after each "make".
Does anyone know how to add a post-build line into the makefile?
You could add something like this to the end of your default make
target (the first target in the makefile is always the default):
install folderA/{file1,file2,file3} folderA/*.foo folderB
If you want something more complicated, have a look at man install
and man cp
.