I have following make rule:
$ ls files
a b c
$ cat Makefile
files.7z: ./files/*
7z a $@ $?
The rule will be executed as follows:
7z a files.7z files/a files/b files/c
7z treats paths beginning with ./
especially in that, it will include the file in the archive without the path. What would be the shortest way to replace the paths, to begin with, ./
in the $?
? (Files names can have spaces.)