Просмотр исходного кода

Make improvements
Author: jgg
Date: 1998-11-23 23:17:45 GMT
Make improvements

Arch Librarian лет назад: 22
Родитель
Сommit
c3c459fc5e
7 измененных файлов с 57 добавлено и 8 удалено
  1. 2 1
      Makefile
  2. 27 0
      buildlib/copy.mak
  3. 1 0
      buildlib/defaults.mak
  4. 3 3
      buildlib/makefile.in
  5. 7 4
      doc/examples/apt.conf
  6. 5 0
      doc/makefile
  7. 12 0
      dselect/makefile

+ 2 - 1
Makefile

@@ -25,6 +25,7 @@ maintainer-clean dist-clean distclean pristine sanity: veryclean
 # The startup target builds the necessary configure scripts. It should
 # be used after a CVS checkout.
 CONVERTED=environment.mak include/config.h makefile
+include buildlib/configure.mak
 $(BUILDDIR)/include/config.h: buildlib/config.h.in
 $(BUILDDIR)/environment.mak: buildlib/environment.mak.in
-include buildlib/configure.mak
+$(BUILDDIR)/makefile: buildlib/makefile.in

+ 27 - 0
buildlib/copy.mak

@@ -0,0 +1,27 @@
+# -*- make -*-
+
+# This installs arbitary files into a directory
+
+# Input
+# $(SOURCE) - The documents to use
+# $(TO)     - The directory to put them in
+# All output is writtin to files in the build/$(TO) directory
+
+# See defaults.mak for information about LOCAL
+
+# Some local definitions
+LOCAL := copy-$(firstword $(SOURCE))
+$(LOCAL)-LIST := $(addprefix $(TO)/,$(SOURCE))
+
+# Install generation hooks
+doc: $($(LOCAL)-LIST)
+veryclean: veryclean/$(LOCAL)
+
+$($(LOCAL)-LIST) : $(TO)/% : %
+	echo Installing $< to $(@D)
+	cp $< $(@D)
+
+# Clean rule
+.PHONY: veryclean/$(LOCAL)
+veryclean/$(LOCAL):
+	-rm -rf $($(@F)-LIST)

+ 1 - 0
buildlib/defaults.mak

@@ -62,6 +62,7 @@ LIBRARY_H = $(BASE)/buildlib/library.mak
 DEBIANDOC_H = $(BASE)/buildlib/debiandoc.mak
 MANPAGE_H = $(BASE)/buildlib/manpage.mak
 PROGRAM_H = $(BASE)/buildlib/program.mak
+COPY_H = $(BASE)/buildlib/copy.mak
 
 # Source location control
 # SUBDIRS specifies sub components of the module that

+ 3 - 3
buildlib/makefile.in

@@ -7,9 +7,9 @@ ifndef NOISY
 endif
 
 SRCDIR=@top_srcdir@
-SUBDIRS:=./docs ./bin ./bin/methods ./obj ./include/apt-pkg ./include/deity
-SUBDIRS+=./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
-	./obj/test ./obj/methods ./obj/methods/ftp
+SUBDIRS:=./docs ./docs/examples ./bin ./bin/methods ./obj ./include/apt-pkg \
+         ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
+         ./obj/test ./obj/methods ./obj/methods/ftp ./dselect
 BUILD:=$(shell pwd)
 export BUILD
 

+ 7 - 4
doc/examples/apt.conf

@@ -1,4 +1,4 @@
-// $Id: apt.conf,v 1.14 1998/11/23 01:46:01 jgg Exp $
+// $Id: apt.conf,v 1.15 1998/11/23 23:17:49 jgg Exp $
 /* This file is an index of all APT configuration directives. It should
    NOT actually be used as a real config file, though it is a completely
    valid file.
@@ -38,11 +38,12 @@ Acquire
 {
   Queue-Mode "host";       // host|access
   
-/*  http 
+  // HTTP method configuration
+  http 
   {
     Proxy "http://127.0.0.1:3128";
-    Proxy::http.us.debian.org "DIRECT";  // Specific per-host setting 
-  };*/
+    Proxy::http.us.debian.org "DIRECT";  // Specific per-host setting
+  };
 };
 
 // Directory layout
@@ -80,6 +81,7 @@ Dir
   };
 };
 
+// Things that effect the APT dselect method
 DSelect {
    Clean "auto";
    Options "-f";
@@ -96,4 +98,5 @@ Debug {
   pkgDPkgPM "false";
   
   pkgInitialize "false";   // This one will dump the configuration space
+  NoLocking "false";   
 }

+ 5 - 0
doc/makefile

@@ -13,3 +13,8 @@ include $(DEBIANDOC_H)
 # Man pages
 SOURCE = apt-cache.8 apt-get.8 apt.8 sources.list.5
 include $(MANPAGE_H)
+
+# Examples
+SOURCE = examples/apt.conf examples/sources.list
+TO = $(DOC)
+include $(COPY_H)

+ 12 - 0
dselect/makefile

@@ -0,0 +1,12 @@
+# -*- make -*-
+BASE=..
+SUBDIR=dselect
+
+# Bring in the default rules
+include ../buildlib/defaults.mak
+
+# DSelect interfacing directory
+SOURCE = desc.apt install names setup update
+TO = $(BUILD)/dselect
+include $(COPY_H)
+