diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:39 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:39 +0000 |
commit | c3c459fc5ec635db7e6fa7cff97f4d954cd39fc9 (patch) | |
tree | 42cab59df861d917fb146d718d807ee97bd00ab3 /buildlib | |
parent | 352c27685a2b9f3b5e0b9eb7b828af099fbdb934 (diff) |
Make improvements
Author: jgg
Date: 1998-11-23 23:17:45 GMT
Make improvements
Diffstat (limited to 'buildlib')
-rw-r--r-- | buildlib/copy.mak | 27 | ||||
-rw-r--r-- | buildlib/defaults.mak | 1 | ||||
-rw-r--r-- | buildlib/makefile.in | 6 |
3 files changed, 31 insertions, 3 deletions
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 |