X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c3c459fc5ec635db7e6fa7cff97f4d954cd39fc9..29636cc759c6fbb92c6c462c90611eefb67cbbd4:/buildlib/copy.mak?ds=inline diff --git a/buildlib/copy.mak b/buildlib/copy.mak index 973c4853b..3ae11a7eb 100644 --- a/buildlib/copy.mak +++ b/buildlib/copy.mak @@ -1,10 +1,12 @@ # -*- make -*- -# This installs arbitary files into a directory +# This installs arbitrary files into a directory # Input # $(SOURCE) - The documents to use # $(TO) - The directory to put them in +# $(TARGET) - The global target to add the local target as a dependency +# to. # All output is writtin to files in the build/$(TO) directory # See defaults.mak for information about LOCAL @@ -14,9 +16,11 @@ LOCAL := copy-$(firstword $(SOURCE)) $(LOCAL)-LIST := $(addprefix $(TO)/,$(SOURCE)) # Install generation hooks -doc: $($(LOCAL)-LIST) +$(TARGET): $($(LOCAL)-LIST) veryclean: veryclean/$(LOCAL) +MKDIRS += $(dir $($(LOCAL)-LIST)) + $($(LOCAL)-LIST) : $(TO)/% : % echo Installing $< to $(@D) cp $< $(@D)