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 MKDIRS += $(dir $($(LOCAL)-LIST))
22 $($(LOCAL)-LIST) : $(TO)/% : %
23 echo Installing $< to $(@D)
27 .PHONY: veryclean/$(LOCAL)