From 56abe2c9cdc46617409b040183516a31e5e49a8d Mon Sep 17 00:00:00 2001 From: Jeff Hobbs Date: Thu, 30 Jan 2003 17:48:58 +0000 Subject: [PATCH] only install pkgIndex.tcl for shared builds --- ChangeLog | 4 ++++ Makefile.in | 24 ++++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index bcae5af..4bf1177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-01-30 Jeff Hobbs + + * Makefile.in: only install pkgIndex.tcl for shared builds + 2003-01-29 Jeff Hobbs * library/pkgIndex.tcl.in (new): diff --git a/Makefile.in b/Makefile.in index 65858b5..af28b99 100644 --- a/Makefile.in +++ b/Makefile.in @@ -136,7 +136,7 @@ INCLUDES = @TCL_INCLUDES@ EXTRA_CFLAGS = $(MEM_DEBUG_FLAGS) @EXTRA_CFLAGS@ -DEFS = $(TCL_DEFS) @DEFS@ $(EXTRA_CFLAGS) +DEFS = @DEFS@ $(EXTRA_CFLAGS) CONFIG_CLEAN_FILES = Makefile library/pkgIndex.tcl @@ -173,17 +173,10 @@ binaries: $(BINARIES) libraries: @mkdir -p $(top_builddir)/library/ @list='$(RUNTIME_SOURCES)'; for p in $$list; do \ - if test -f $(srcdir)/library/$$p; then \ $(INSTALL_DATA) $(srcdir)/library/$$p $(top_builddir)/library/$$p;\ - fi; \ done doc: - @echo "If you have documentation to create, place the commands to" - @echo "build the docs in the 'doc:' target. For example:" - @echo "" - @echo "xml2nroff VFS.xml > VFS.n" - @echo "xml2html VFS.xml > VFS.html" install: all install-binaries install-libraries install-doc @@ -205,9 +198,8 @@ install-doc: doc @mkdir -p $(DESTDIR)$(mandir)/man3 @mkdir -p $(DESTDIR)$(mandir)/mann @echo "Installing documentation in $(DESTDIR)$(mandir)" - @for i in $(srcdir)/doc/*.n; \ - do \ - echo "Installing $$i"; \ + @for i in $(srcdir)/doc/*.n; do \ + echo "Installing $(DESTDIR)$(mandir)/mann/`basename $$i`"; \ rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ done @@ -312,10 +304,14 @@ install-lib-binaries: fi; \ done @echo "Installing runtime sources in $(DESTDIR)$(pkglibdir)/" - @for i in $(top_builddir)/library/*; do \ - rm -f $(DESTDIR)$(pkglibdir)/`basename $$i`; \ - $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/ ; \ + @list='$(RUNTIME_SOURCES)'; for p in $$list; do \ + rm -f $(DESTDIR)$(pkglibdir)/`basename $$p`; \ + $(INSTALL_DATA) $(top_builddir)/library/$$p $(DESTDIR)$(pkglibdir)/;\ done + @if test "@SHARED_BUILD@" = "1"; then \ + echo "Installing pkgIndex.tcl in $(DESTDIR)$(pkglibdir)/"; \ + $(INSTALL_DATA) $(top_builddir)/library/pkgIndex.tcl $(DESTDIR)$(pkglibdir)/;\ + fi #======================================================================== # Install binary executables (e.g. .exe files) -- 2.23.0