summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildlib/copy.mak4
-rw-r--r--doc/makefile1
-rw-r--r--dselect/makefile1
3 files changed, 5 insertions, 1 deletions
diff --git a/buildlib/copy.mak b/buildlib/copy.mak
index 892b74bc4..15f448827 100644
--- a/buildlib/copy.mak
+++ b/buildlib/copy.mak
@@ -5,6 +5,8 @@
# 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,7 +16,7 @@ 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))
diff --git a/doc/makefile b/doc/makefile
index 2ea37eae7..6fef0cc6e 100644
--- a/doc/makefile
+++ b/doc/makefile
@@ -20,4 +20,5 @@ include $(SGML_MANPAGE_H)
# Examples
SOURCE = examples/apt.conf examples/sources.list examples/configure-index
TO = $(DOC)
+TARGET = doc
include $(COPY_H)
diff --git a/dselect/makefile b/dselect/makefile
index cdc802864..c2059f92a 100644
--- a/dselect/makefile
+++ b/dselect/makefile
@@ -8,6 +8,7 @@ include ../buildlib/defaults.mak
# DSelect interfacing directory
SOURCE = desc.apt install names setup update
TO = $(BUILD)/scripts/dselect
+TARGET = program
include $(COPY_H)
LOCAL = dselect