diff options
author | Tom Tromey <tromey@redhat.com> | 1996-10-06 03:55:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1996-10-06 03:55:55 +0000 |
commit | c19b562063efff67909e72ee7abe63c0960706a7 (patch) | |
tree | c0eece059f58fbe63dd3696f6dd1d3b5b58db87a /lib/am/libs.am | |
parent | 9e3559f10b3f25fc9e51191cc5568da1e3f7f45a (diff) | |
download | automake-c19b562063efff67909e72ee7abe63c0960706a7.tar.gz |
Many bug fixes
Diffstat (limited to 'lib/am/libs.am')
-rw-r--r-- | lib/am/libs.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/am/libs.am b/lib/am/libs.am new file mode 100644 index 000000000..324128d64 --- /dev/null +++ b/lib/am/libs.am @@ -0,0 +1,44 @@ +## automake - create Makefile.in from Makefile.am +## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. + +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. + +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +## 02111-1307, USA. +install-@DIR@LIBRARIES: $(@DIR@_LIBFILES) + $(NORMAL_INSTALL) + $(mkinstalldirs) $(@DIR@dir) +## Funny invocation because Makefile variable can be empty, leading to +## a syntax error in sh. + list="$(@DIR@_LIBFILES)"; for p in $$list; do \ + if test -f $$p; then \ + $(INSTALL_DATA) $$p $(@DIR@dir)/$$p; \ + else :; fi; \ + done +## We do two loops here so that $(POST_INSTALL) can be empty. If we +## merge the two loops, we get a syntax error from sh. Anyway, having +## $(POST_INSTALL) in the middle of the loop essentially renders it +## useless; sh never actually executes this command. Read the GNU +## Standards for a little enlightenment on this. + $(POST_INSTALL) + list="$(@DIR@_LIBFILES)"; for p in $$list; do \ + if test -f $$p; then \ +## Must ranlib after installing because mod time changes. + $(RANLIB) $(@DIR@dir)/$$p; \ + else :; fi; \ + done + +uninstall-@DIR@LIBRARIES: + list="$(@DIR@_LIBFILES)"; for p in $$list; do \ + rm -f $(@DIR@dir)/$$p; \ + done |