3 # This installs arbitary files into a directory
6 # $(SOURCE) - The documents to use
7 # $(TO) - The directory to put them in
8 # All output is writtin to files in the build/$(TO) directory
10 # See defaults.mak for information about LOCAL
12 # Some local definitions
13 LOCAL := copy-$(firstword $(SOURCE))
14 $(LOCAL)-LIST := $(addprefix $(TO)/,$(SOURCE))
16 # Install generation hooks
18 veryclean: veryclean/$(LOCAL)
20 $($(LOCAL)-LIST) : $(TO)/% : %
21 echo Installing $< to $(@D)
25 .PHONY: veryclean/$(LOCAL)