5 AUTOMAKE_OPTIONS = foreign no-dependencies
8 CHANGES LEGAL maketgz MITX.txt MPL-1.1.txt \
9 config-win32.h reconf packages/README Makefile.dist \
12 bin_SCRIPTS = curl-config
14 SUBDIRS = docs lib src include tests packages perl php
16 # create a root makefile in the distribution:
18 cp $(srcdir)/Makefile.dist $(distdir)/Makefile
23 @(cd tests; $(MAKE) quiet-test)
26 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
27 # must contain the following line:
28 # %_topdir /home/loic/local/rpm
29 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
31 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
33 # If additional configure flags are needed to build the package, add the
34 # following in ~/.rpmmacros
35 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
36 # and run make rpm in the following way:
37 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
41 $(MAKE) RPMDIST=curl rpm
42 $(MAKE) RPMDIST=curl-ssl rpm
45 RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
46 cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
47 cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
48 rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
49 mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
50 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .