2 # Top-level Makefile.am for SASL
5 ################################################################
6 # Copyright (c) 2000 Carnegie Mellon University. All rights reserved.
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
12 # 1. Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
15 # 2. Redistributions in binary form must reproduce the above copyright
16 # notice, this list of conditions and the following disclaimer in
17 # the documentation and/or other materials provided with the
20 # 3. The name "Carnegie Mellon University" must not be used to
21 # endorse or promote products derived from this software without
22 # prior written permission. For permission or any other legal
23 # details, please contact
24 # Office of Technology Transfer
25 # Carnegie Mellon University
27 # Pittsburgh, PA 15213-3890
28 # (412) 268-4387, fax: (412) 268-7395
29 # tech-transfer@andrew.cmu.edu
31 # 4. Redistributions of any form whatsoever must retain the following
33 # "This product includes software developed by Computing Services
34 # at Carnegie Mellon University (http://www.cmu.edu/computing/)."
36 # CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
37 # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38 # AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
39 # FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
40 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
41 # AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
42 # OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
44 ################################################################
67 INSTALLOSX = install-exec-local-osx
72 SUBDIRS=include sasldb plugins lib utils doc man $(PWC) $(SAM) $(JAV) $(SAD)
73 EXTRA_DIST=config cmulocal win32 mac dlcompat-20010505 NTMakefile INSTALL.TXT
76 @find $(distdir) -exec chmod o+w {} ';'
77 @find $(distdir) -name CVS -print | xargs -t rm -rf
78 (cd $(distdir)/plugins && sh makeinit.sh)
80 framedir = /Library/Frameworks/SASL2.framework
81 install-exec-local: $(INSTALLOSX)
82 @if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
83 echo "********************************************************"; \
85 echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \
86 echo "* but the library will look for them in $(plugindir)."; \
87 echo "* You need to make sure that the plugins will eventually"; \
88 echo "* be in $(plugindir) -- the easiest way is to make a"; \
89 echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \
90 echo "* but this may not be appropriate for your site, so this"; \
91 echo "* installation procedure won't do it for you."; \
93 echo "* If you don't want to do this for some reason, you can"; \
94 echo "* set the location where the library will look for plugins"; \
95 echo "* by setting the environment variable SASL_PATH to the path"; \
96 echo "* the library should use."; \
97 echo "********************************************************"; \
99 install-exec-local-osx:
100 $(mkinstalldirs) $(framedir)/Versions/A/Headers
101 $(mkinstalldirs) $(framedir)/Versions/A/Resources
102 cd $(framedir)/Versions ; ln -fs A Current
103 cd $(framedir) ; ln -fs Versions/A/Headers .
104 cd $(framedir) ; ln -fs Versions/A/Resources .
105 $(INSTALL_DATA) $(srcdir)/config/Info.plist $(framedir)/Versions/A/Resources