'make test-torture' in the root now runs a full torture test
[platform/upstream/curl.git] / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2004, 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 EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist       \
27   curl-config.in curl-style.el sample.emacs testcurl.sh RELEASE-NOTES
28
29 bin_SCRIPTS = curl-config
30
31 SUBDIRS = lib src
32 DIST_SUBDIRS = $(SUBDIRS) tests include packages docs
33
34 dist-hook:
35         rm -rf $(top_builddir)/tests/log
36         find $(distdir) -name "*.dist" -exec rm {} \;
37         (distit=`find $(srcdir) -name "*.dist"`; \
38         for file in $$distit; do \
39           strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
40           cp $$file $(distdir)$$strip; \
41         done)
42
43 html:
44         cd docs; make html
45
46 pdf:
47         cd docs; make pdf
48
49 check: test
50
51 test:
52         @(cd tests; $(MAKE) all quiet-test)
53
54 test-full:
55         @(cd tests; $(MAKE) all full-test)
56
57 test-torture:
58         @(cd tests; $(MAKE) all torture-test)
59
60 #
61 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
62 # must contain the following line:
63 # %_topdir /home/loic/local/rpm
64 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
65 #
66 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
67 #
68 # If additional configure flags are needed to build the package, add the
69 # following in ~/.rpmmacros
70 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
71 # and run make rpm in the following way:
72 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
73 #
74
75 rpms:
76         $(MAKE) RPMDIST=curl rpm
77         $(MAKE) RPMDIST=curl-ssl rpm
78
79 rpm:
80         RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
81         cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
82         cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
83         rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
84         mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
85         mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
86
87 #
88 # Build a Solaris pkkgadd format file
89 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
90 # file (which ends up back in this directory).
91 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
92 # pkgadd -d ./HAXXcurl-*
93 #
94
95 # gak - libtool requires an absoulte directory, hence the pwd below...
96 pkgadd:
97         umask 022 ; \
98         make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
99         cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
100         cd $(srcdir)/packages/Solaris && $(MAKE) package
101
102 #
103 # Build a cygwin binary tarball installation file
104 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
105 cygwinbin:
106         $(MAKE) -C packages/Win32/cygwin cygwinbin
107
108 # We extend the standard install with a custom hook:
109 install-data-hook:
110         cd include && $(MAKE) install
111         cd docs && $(MAKE) install
112
113 # We extend the standard uninstall with a custom hook:
114 uninstall-hook:
115         cd include && $(MAKE) uninstall
116         cd docs && $(MAKE) uninstall