Include the RELEASE-NOTES file too, which is basicly the release announce
[platform/upstream/curl.git] / Makefile.am
1 #
2 # $Id$
3 #
4
5 AUTOMAKE_OPTIONS = foreign
6
7 EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist       \
8   curl-config.in build_vms.com curl-style.el sample.emacs testcurl.sh \
9   RELEASE-NOTES
10
11 bin_SCRIPTS = curl-config
12
13 SUBDIRS = lib src
14 DIST_SUBDIRS = $(SUBDIRS) tests include packages docs
15
16 # create a root makefile in the distribution:
17 dist-hook:
18         rm -rf $(top_builddir)/tests/log
19         cp $(srcdir)/Makefile.dist $(distdir)/Makefile
20
21 html:
22         cd docs; make html
23
24 pdf:
25         cd docs; make pdf
26
27 check: test
28
29 test:
30         @(cd tests; $(MAKE) all quiet-test)
31
32 test-full:
33         @(cd tests; $(MAKE) all full-test)
34
35 #
36 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
37 # must contain the following line:
38 # %_topdir /home/loic/local/rpm
39 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
40 #
41 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
42 #
43 # If additional configure flags are needed to build the package, add the
44 # following in ~/.rpmmacros
45 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
46 # and run make rpm in the following way:
47 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
48 #
49
50 rpms:
51         $(MAKE) RPMDIST=curl rpm
52         $(MAKE) RPMDIST=curl-ssl rpm
53
54 rpm:
55         RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
56         cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
57         cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
58         rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
59         mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
60         mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
61
62 #
63 # Build a Solaris pkkgadd format file
64 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
65 # file (which ends up back in this directory).
66 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
67 # pkgadd -d ./HAXXcurl-*
68 #
69
70 # gak - libtool requires an absoulte directory, hence the pwd below...
71 pkgadd:
72         umask 022 ; \
73         make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
74         cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
75         cd $(srcdir)/packages/Solaris && $(MAKE) package
76
77 #
78 # Build a cygwin binary tarball installation file
79 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
80 cygwinbin:
81         $(MAKE) -C packages/Win32/cygwin cygwinbin
82
83 # We extend the standard install with a custom hook:
84 install-data-hook:
85         cd include && $(MAKE) install
86         cd docs && $(MAKE) install
87
88 # We extend the standard uninstall with a custom hook:
89 uninstall-hook:
90         cd include && $(MAKE) uninstall
91         cd docs && $(MAKE) uninstall