From c3c459fc5ec635db7e6fa7cff97f4d954cd39fc9 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:39 +0000 Subject: Make improvements Author: jgg Date: 1998-11-23 23:17:45 GMT Make improvements --- buildlib/copy.mak | 27 +++++++++++++++++++++++++++ buildlib/defaults.mak | 1 + buildlib/makefile.in | 6 +++--- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 buildlib/copy.mak (limited to 'buildlib') diff --git a/buildlib/copy.mak b/buildlib/copy.mak new file mode 100644 index 000000000..973c4853b --- /dev/null +++ b/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) diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak index 549be5385..f03236018 100644 --- a/buildlib/defaults.mak +++ b/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 diff --git a/buildlib/makefile.in b/buildlib/makefile.in index cf808643b..63097b989 100644 --- a/buildlib/makefile.in +++ b/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 -- cgit v1.2.3