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