From 6545ec5d9bfbe1dd50d2c832d8ea1eeceb6b7229 Mon Sep 17 00:00:00 2001 From: Boris Boesler Date: Tue, 17 Apr 2001 11:37:14 +0000 Subject: [PATCH] splittet installation of files into the part of headers and libraries [r146] --- MakeRules.in | 2 +- MakeTargets | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/MakeRules.in b/MakeRules.in index acda48918..e33c3e056 100644 --- a/MakeRules.in +++ b/MakeRules.in @@ -109,4 +109,4 @@ test -z "$$fail" endef endif -targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib +targets = all clean depend realclean tags install autodoc autodoc_xref autodoc_html dist distrib install_headers install_libs diff --git a/MakeTargets b/MakeTargets index f51c33af5..1004875b1 100644 --- a/MakeTargets +++ b/MakeTargets @@ -74,15 +74,21 @@ local_tags: $(TAGFILES) etags -C $^ # installation -install: subdir_install local_install -local_install: $(INCLUDEDIR) $(LIBDIR) +install: $(INCLUDEDIR) install_headers $(LIBDIR) install_libs + +install_headers: subdir_install_headers local_install_headers +local_install_headers: ifneq ($(strip $(INSTALL_HEADERS)),) $(INSTALL) -m u+rw,a+r $(addprefix $(srcdir)/,$(INSTALL_HEADERS)) $(INCLUDEDIR) endif + +install_libs: subdir_install_libs local_install_libs +local_install_libs: ifneq ($(strip $(INSTALL_LIBS)),) $(INSTALL) -m u+rw,a+r $(addprefix $(topdir)/,$(INSTALL_LIBS)) $(LIBDIR) endif + $(LIBDIR): $(LIBDIR) mkdir -p $@ -- 2.20.1