find_package(Perl)
+if(PERL_EXECUTABLE)
+ add_custom_target(curl-ca-bundle
+ COMMENT "Generating a fresh ca-bundle.crt" VERBATIM USES_TERMINAL
+ COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl" -b -l -u "lib/ca-bundle.crt"
+ DEPENDS "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl"
+ )
+ add_custom_target(curl-ca-firefox
+ COMMENT "generating a fresh ca-bundle.crt" VERBATIM USES_TERMINAL
+ COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/firefox-db2pem.sh" "lib/ca-bundle.crt"
+ DEPENDS "${PROJECT_SOURCE_DIR}/scripts/firefox-db2pem.sh"
+ )
+endif()
+
option(BUILD_LIBCURL_DOCS "Build libcurl man pages" ON)
option(BUILD_MISC_DOCS "Build misc man pages (e.g. curl-config and mk-ca-bundle)" ON)
option(ENABLE_CURL_MANUAL "Build the man page for curl and enable its -M/--manual option" ON)
plan9/src/mkfile.inc \
plan9/src/mkfile
-EXTRA_DIST = CHANGES.md COPYING Makefile.dist \
- RELEASE-NOTES $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) \
- $(PLAN9_DIST) Dockerfile
+EXTRA_DIST = CHANGES.md COPYING RELEASE-NOTES Dockerfile \
+ $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST)
DISTCLEANFILES = buildinfo.txt
dist-hook:
rm -rf $(top_builddir)/tests/log
- find $(distdir) -name "*.dist" -a \! -name Makefile.dist -exec rm {} \;
+ find $(distdir) -name "*.dist" -exec rm {} \;
(distit=`find $(srcdir) -name "*.dist" | grep -v Makefile`; \
for file in $$distit; do \
strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
+++ /dev/null
-#***************************************************************************
-# _ _ ____ _
-# Project ___| | | | _ \| |
-# / __| | | | |_) | |
-# | (__| |_| | _ <| |___
-# \___|\___/|_| \_\_____|
-#
-# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
-#
-# This software is licensed as described in the file COPYING, which
-# you should have received as part of this distribution. The terms
-# are also available at https://curl.se/docs/copyright.html.
-#
-# You may opt to use, copy, modify, merge, publish, distribute and/or sell
-# copies of the Software, and permit persons to whom the Software is
-# furnished to do so, under the terms of the COPYING file.
-#
-# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-# KIND, either express or implied.
-#
-# SPDX-License-Identifier: curl
-#
-###########################################################################
-
-all:
- ./configure
- make
-
-ssl:
- ./configure --with-openssl
- make
-
-cygwin: all
-cygwin-ssl: ssl
-
-unix: all
-unix-ssl: ssl
-
-linux: all
-linux-ssl: ssl
-
-ca-bundle: scripts/mk-ca-bundle.pl
- @echo "generate a fresh ca-bundle.crt"
- @perl $< -b -l -u lib/ca-bundle.crt
-
-ca-firefox: scripts/firefox-db2pem.sh
- @echo "generate a fresh ca-bundle.crt"
- ./scripts/firefox-db2pem.sh lib/ca-bundle.crt
#
# As a precaution, remove all *.dist files that may be lying around, to reduce
-# the risk of old leftovers getting shipped. The root 'Makefile.dist' is the
-# exception.
+# the risk of old leftovers getting shipped.
echo "removing all old *.dist files"
-find . -name "*.dist" -a ! -name Makefile.dist -exec rm {} \;
+find . -name "*.dist" -exec rm {} \;
numeric="$(printf "%02x%02x%02x\n" "$major" "$minor" "$patch")"
if ($^O eq 'MSWin32') {
system("xcopy /s /q \"$CURLDIR\" .");
}
- elsif ($^O eq 'linux') {
- system("cp -afr $CURLDIR/* .");
- system("cp -af $CURLDIR/Makefile.dist Makefile");
- system("$make -i -C lib -f Makefile.$targetos prebuild");
- system("$make -i -C src -f Makefile.$targetos prebuild");
- if (-d "$CURLDIR/ares") {
- system("cp -af $CURLDIR/ares/ares_build.h.dist ./ares/ares_build.h");
- system("$make -i -C ares -f Makefile.$targetos prebuild");
- }
- }
}
if(-f "./libcurl.pc") {