From: Boris Boesler Date: Tue, 17 Apr 2001 11:37:14 +0000 (+0000) Subject: splittet installation of files into the part of headers and libraries X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=6545ec5d9bfbe1dd50d2c832d8ea1eeceb6b7229;p=libfirm splittet installation of files into the part of headers and libraries [r146] --- 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 $@