Explorar o código

copy rules now require a TARGET var, to specify the tar...
Author: doogie
Date: 2003-02-12 07:28:33 GMT
copy rules now require a TARGET var, to specify the target to install the
copy rules under. The copy target in dselect/makefile installs itself
under program, and not doc.

Arch Librarian %!s(int64=22) %!d(string=hai) anos
pai
achega
921cd883b9
Modificáronse 3 ficheiros con 5 adicións e 1 borrados
  1. 3 1
      buildlib/copy.mak
  2. 1 0
      doc/makefile
  3. 1 0
      dselect/makefile

+ 3 - 1
buildlib/copy.mak

@@ -5,6 +5,8 @@
 # Input
 # Input
 # $(SOURCE) - The documents to use
 # $(SOURCE) - The documents to use
 # $(TO)     - The directory to put them in
 # $(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
 # All output is writtin to files in the build/$(TO) directory
 
 
 # See defaults.mak for information about LOCAL
 # See defaults.mak for information about LOCAL
@@ -14,7 +16,7 @@ LOCAL := copy-$(firstword $(SOURCE))
 $(LOCAL)-LIST := $(addprefix $(TO)/,$(SOURCE))
 $(LOCAL)-LIST := $(addprefix $(TO)/,$(SOURCE))
 
 
 # Install generation hooks
 # Install generation hooks
-doc: $($(LOCAL)-LIST)
+$(TARGET): $($(LOCAL)-LIST)
 veryclean: veryclean/$(LOCAL)
 veryclean: veryclean/$(LOCAL)
 
 
 MKDIRS += $(dir $($(LOCAL)-LIST))
 MKDIRS += $(dir $($(LOCAL)-LIST))

+ 1 - 0
doc/makefile

@@ -20,4 +20,5 @@ include $(SGML_MANPAGE_H)
 # Examples
 # Examples
 SOURCE = examples/apt.conf examples/sources.list examples/configure-index 
 SOURCE = examples/apt.conf examples/sources.list examples/configure-index 
 TO = $(DOC)
 TO = $(DOC)
+TARGET = doc
 include $(COPY_H)
 include $(COPY_H)

+ 1 - 0
dselect/makefile

@@ -8,6 +8,7 @@ include ../buildlib/defaults.mak
 # DSelect interfacing directory
 # DSelect interfacing directory
 SOURCE = desc.apt install names setup update
 SOURCE = desc.apt install names setup update
 TO = $(BUILD)/scripts/dselect
 TO = $(BUILD)/scripts/dselect
+TARGET = program
 include $(COPY_H)
 include $(COPY_H)
 
 
 LOCAL = dselect
 LOCAL = dselect