mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
build: fix portability of mancheck and checksrc targets
At least FreeBSD preserves cwd across makefile lines, so rules consisting of more than one "cd X; do_something" must be explicitly run in a subshell to avoid this. This problem caused the Cirrus FreeBSD build to fail when parallel make jobs were enabled.
This commit is contained in:
parent
78e0938fcc
commit
5949369c9f
@ -54,7 +54,7 @@ pdf: $(PDFPAGES)
|
|||||||
echo "converted $< to $@")
|
echo "converted $< to $@")
|
||||||
|
|
||||||
mancheck:
|
mancheck:
|
||||||
@cd $(top_srcdir)/docs/libcurl/opts && ls `awk -F, '!/OBSOLETE/ && /^ CINIT/ { a=substr($$1, 9); print "CURLOPT_" a ".3"}' $(top_srcdir)/include/curl/curl.h`
|
@(cd $(top_srcdir)/docs/libcurl/opts && ls `awk -F, '!/OBSOLETE/ && /^ CINIT/ { a=substr($$1, 9); print "CURLOPT_" a ".3"}' $(top_srcdir)/include/curl/curl.h`)
|
||||||
rm -f in_temp
|
rm -f in_temp
|
||||||
@(for a in $(man_MANS); do echo $$a >>in_temp; done)
|
@(for a in $(man_MANS); do echo $$a >>in_temp; done)
|
||||||
sort in_temp > in_makefile
|
sort in_temp > in_makefile
|
||||||
|
@ -117,10 +117,10 @@ event-test: perlcheck all
|
|||||||
echo "converted $< to $@")
|
echo "converted $< to $@")
|
||||||
|
|
||||||
checksrc:
|
checksrc:
|
||||||
cd libtest && $(MAKE) checksrc
|
(cd libtest && $(MAKE) checksrc)
|
||||||
cd unit && $(MAKE) checksrc
|
(cd unit && $(MAKE) checksrc)
|
||||||
cd server && $(MAKE) checksrc
|
(cd server && $(MAKE) checksrc)
|
||||||
cd http && $(MAKE) checksrc
|
(cd http && $(MAKE) checksrc)
|
||||||
|
|
||||||
if CURLDEBUG
|
if CURLDEBUG
|
||||||
# for debug builds, we scan the sources on all regular make invokes
|
# for debug builds, we scan the sources on all regular make invokes
|
||||||
|
Loading…
Reference in New Issue
Block a user