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