Remove buildconf.bat from release and daily snapshot archives.
[platform/upstream/curl.git] / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
9 #
10 # This software is licensed as described in the file COPYING, which
11 # you should have received as part of this distribution. The terms
12 # are also available at http://curl.haxx.se/docs/copyright.html.
13 #
14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 # copies of the Software, and permit persons to whom the Software is
16 # furnished to do so, under the terms of the COPYING file.
17 #
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
20 #
21 # $Id$
22 ###########################################################################
23
24 AUTOMAKE_OPTIONS = foreign
25
26 ACLOCAL_AMFLAGS = -I m4
27
28 CMAKE_DIST = CMakeLists.txt CMake/CheckTypeSize.c.in CMake/CheckTypeSize.cmake \
29 CMake/CMakeConfigurableFile.in CMake/CurlCheckCSourceCompiles.cmake            \
30 CMake/CurlCheckCSourceRuns.cmake CMake/CurlTests.c CMake/FindOpenSSL.cmake     \
31 CMake/FindZLIB.cmake CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
32 CMake/Utilities.cmake include/curl/curlbuild.h.cmake
33
34 EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in       \
35  curl-style.el sample.emacs RELEASE-NOTES buildconf     \
36  libcurl.pc.in vc6curl.dsw MacOSX-Framework $(CMAKE_DIST)
37
38 bin_SCRIPTS = curl-config
39
40 SUBDIRS = lib src
41 DIST_SUBDIRS = $(SUBDIRS) tests include packages docs
42
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = libcurl.pc
45
46 dist-hook:
47         rm -rf $(top_builddir)/tests/log
48         find $(distdir) -name "*.dist" -exec rm {} \;
49         (distit=`find $(srcdir) -name "*.dist"`; \
50         for file in $$distit; do \
51           strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
52           cp $$file $(distdir)$$strip; \
53         done)
54
55 html:
56         cd docs; make html
57
58 pdf:
59         cd docs; make pdf
60
61 check: test examples
62
63 if CROSSCOMPILING
64 test-full: test
65 test-torture: test
66
67 test:
68         @echo "NOTICE: we can't run the tests when cross-compiling!"
69
70 else
71
72 test:
73         @(cd tests; $(MAKE) all quiet-test)
74
75 test-full:
76         @(cd tests; $(MAKE) all full-test)
77
78 test-torture:
79         @(cd tests; $(MAKE) all torture-test)
80
81 endif
82
83 examples:
84         @(cd docs/examples; $(MAKE) check)
85
86 clean-local:
87         @(cd tests; $(MAKE) clean)
88         @(cd docs; $(MAKE) clean)
89
90 #
91 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
92 # must contain the following line:
93 # %_topdir /home/loic/local/rpm
94 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
95 #
96 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
97 #
98 # If additional configure flags are needed to build the package, add the
99 # following in ~/.rpmmacros
100 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
101 # and run make rpm in the following way:
102 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
103 #
104
105 rpms:
106         $(MAKE) RPMDIST=curl rpm
107         $(MAKE) RPMDIST=curl-ssl rpm
108
109 rpm:
110         RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
111         cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
112         cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
113         rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
114         mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
115         mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
116
117 #
118 # Build a Solaris pkgadd format file
119 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
120 # file (which ends up back in this directory).
121 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
122 # pkgadd -d ./HAXXcurl-*
123 #
124
125 # gak - libtool requires an absoulte directory, hence the pwd below...
126 pkgadd:
127         umask 022 ; \
128         make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
129         cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
130         cd $(srcdir)/packages/Solaris && $(MAKE) package
131
132 #
133 # Build a cygwin binary tarball installation file
134 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
135 cygwinbin:
136         $(MAKE) -C packages/Win32/cygwin cygwinbin
137
138 # We extend the standard install with a custom hook:
139 install-data-hook:
140         cd include && $(MAKE) install
141         cd docs && $(MAKE) install
142
143 # We extend the standard uninstall with a custom hook:
144 uninstall-hook:
145         cd include && $(MAKE) uninstall
146         cd docs && $(MAKE) uninstall
147
148 ca-bundle: lib/mk-ca-bundle.pl
149         @echo "generate a fresh ca-bundle.crt"
150         @perl $< -b -l -u lib/ca-bundle.crt
151
152 ca-firefox: lib/firefox-db2pem.sh
153         @echo "generate a fresh ca-bundle.crt"
154         ./lib/firefox-db2pem.sh lib/ca-bundle.crt