5 AUTOMAKE_OPTIONS = foreign
7 EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist \
8 curl-config.in build_vms.com curl-style.el sample.emacs testcurl.sh \
11 bin_SCRIPTS = curl-config
14 DIST_SUBDIRS = $(SUBDIRS) tests include packages docs
16 # create a root makefile in the distribution:
18 rm -rf $(top_builddir)/tests/log
19 cp $(srcdir)/Makefile.dist $(distdir)/Makefile
30 @(cd tests; $(MAKE) all quiet-test)
33 @(cd tests; $(MAKE) all full-test)
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.
41 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
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
51 $(MAKE) RPMDIST=curl rpm
52 $(MAKE) RPMDIST=curl-ssl 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 .
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-*
70 # gak - libtool requires an absoulte directory, hence the pwd below...
73 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
74 cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
75 cd $(srcdir)/packages/Solaris && $(MAKE) package
78 # Build a cygwin binary tarball installation file
79 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
81 $(MAKE) -C packages/Win32/cygwin cygwinbin
83 # We extend the standard install with a custom hook:
85 cd include && $(MAKE) install
86 cd docs && $(MAKE) install
88 # We extend the standard uninstall with a custom hook:
90 cd include && $(MAKE) uninstall
91 cd docs && $(MAKE) uninstall