Skip to content

Commit 2b49e41

Browse files
committed
Merge branch 'tb/make-indent-conditional-with-non-spaces'
Adjust to an upcoming changes to GNU make that breaks our Makefiles. * tb/make-indent-conditional-with-non-spaces: Makefile(s): do not enforce "all indents must be done with tab" Makefile(s): avoid recipe prefix in conditional statements
2 parents a758938 + 227b8fd commit 2b49e41

File tree

5 files changed

+136
-135
lines changed

5 files changed

+136
-135
lines changed

Makefile

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,23 +1558,23 @@ ifneq (,$(SOCKLEN_T))
15581558
endif
15591559

15601560
ifeq ($(uname_S),Darwin)
1561-
ifndef NO_FINK
1562-
ifeq ($(shell test -d /sw/lib && echo y),y)
1561+
ifndef NO_FINK
1562+
ifeq ($(shell test -d /sw/lib && echo y),y)
15631563
BASIC_CFLAGS += -I/sw/include
15641564
BASIC_LDFLAGS += -L/sw/lib
1565-
endif
1566-
endif
1567-
ifndef NO_DARWIN_PORTS
1568-
ifeq ($(shell test -d /opt/local/lib && echo y),y)
1565+
endif
1566+
endif
1567+
ifndef NO_DARWIN_PORTS
1568+
ifeq ($(shell test -d /opt/local/lib && echo y),y)
15691569
BASIC_CFLAGS += -I/opt/local/include
15701570
BASIC_LDFLAGS += -L/opt/local/lib
1571-
endif
1572-
endif
1573-
ifndef NO_APPLE_COMMON_CRYPTO
1571+
endif
1572+
endif
1573+
ifndef NO_APPLE_COMMON_CRYPTO
15741574
NO_OPENSSL = YesPlease
15751575
APPLE_COMMON_CRYPTO = YesPlease
15761576
COMPAT_CFLAGS += -DAPPLE_COMMON_CRYPTO
1577-
endif
1577+
endif
15781578
PTHREAD_LIBS =
15791579
endif
15801580

@@ -1613,53 +1613,53 @@ ifdef NO_CURL
16131613
REMOTE_CURL_NAMES =
16141614
EXCLUDED_PROGRAMS += git-http-fetch git-http-push
16151615
else
1616-
ifdef CURLDIR
1616+
ifdef CURLDIR
16171617
# Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
16181618
CURL_CFLAGS = -I$(CURLDIR)/include
16191619
CURL_LIBCURL = $(call libpath_template,$(CURLDIR)/$(lib))
1620-
else
1620+
else
16211621
CURL_CFLAGS =
16221622
CURL_LIBCURL =
1623-
endif
1623+
endif
16241624

1625-
ifndef CURL_LDFLAGS
1625+
ifndef CURL_LDFLAGS
16261626
CURL_LDFLAGS = $(eval CURL_LDFLAGS := $$(shell $$(CURL_CONFIG) --libs))$(CURL_LDFLAGS)
1627-
endif
1627+
endif
16281628
CURL_LIBCURL += $(CURL_LDFLAGS)
16291629

1630-
ifndef CURL_CFLAGS
1630+
ifndef CURL_CFLAGS
16311631
CURL_CFLAGS = $(eval CURL_CFLAGS := $$(shell $$(CURL_CONFIG) --cflags))$(CURL_CFLAGS)
1632-
endif
1632+
endif
16331633
BASIC_CFLAGS += $(CURL_CFLAGS)
16341634

16351635
REMOTE_CURL_PRIMARY = git-remote-http$X
16361636
REMOTE_CURL_ALIASES = git-remote-https$X git-remote-ftp$X git-remote-ftps$X
16371637
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
16381638
PROGRAM_OBJS += http-fetch.o
16391639
PROGRAMS += $(REMOTE_CURL_NAMES)
1640-
ifndef NO_EXPAT
1640+
ifndef NO_EXPAT
16411641
PROGRAM_OBJS += http-push.o
1642-
endif
1642+
endif
16431643
curl_check := $(shell (echo 072200; $(CURL_CONFIG) --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
1644-
ifeq "$(curl_check)" "072200"
1644+
ifeq "$(curl_check)" "072200"
16451645
USE_CURL_FOR_IMAP_SEND = YesPlease
1646-
endif
1647-
ifdef USE_CURL_FOR_IMAP_SEND
1646+
endif
1647+
ifdef USE_CURL_FOR_IMAP_SEND
16481648
BASIC_CFLAGS += -DUSE_CURL_FOR_IMAP_SEND
16491649
IMAP_SEND_BUILDDEPS = http.o
16501650
IMAP_SEND_LDFLAGS += $(CURL_LIBCURL)
1651-
endif
1652-
ifndef NO_EXPAT
1653-
ifdef EXPATDIR
1651+
endif
1652+
ifndef NO_EXPAT
1653+
ifdef EXPATDIR
16541654
BASIC_CFLAGS += -I$(EXPATDIR)/include
16551655
EXPAT_LIBEXPAT = $(call libpath_template,$(EXPATDIR)/$(lib)) -lexpat
1656-
else
1656+
else
16571657
EXPAT_LIBEXPAT = -lexpat
1658-
endif
1659-
ifdef EXPAT_NEEDS_XMLPARSE_H
1658+
endif
1659+
ifdef EXPAT_NEEDS_XMLPARSE_H
16601660
BASIC_CFLAGS += -DEXPAT_NEEDS_XMLPARSE_H
1661-
endif
1662-
endif
1661+
endif
1662+
endif
16631663
endif
16641664
IMAP_SEND_LDFLAGS += $(OPENSSL_LINK) $(OPENSSL_LIBSSL) $(LIB_4_CRYPTO)
16651665

@@ -1671,15 +1671,15 @@ EXTLIBS += -lz
16711671

16721672
ifndef NO_OPENSSL
16731673
OPENSSL_LIBSSL = -lssl
1674-
ifdef OPENSSLDIR
1674+
ifdef OPENSSLDIR
16751675
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
16761676
OPENSSL_LINK = $(call libpath_template,$(OPENSSLDIR)/$(lib))
1677-
else
1677+
else
16781678
OPENSSL_LINK =
1679-
endif
1680-
ifdef NEEDS_CRYPTO_WITH_SSL
1679+
endif
1680+
ifdef NEEDS_CRYPTO_WITH_SSL
16811681
OPENSSL_LIBSSL += -lcrypto
1682-
endif
1682+
endif
16831683
else
16841684
BASIC_CFLAGS += -DNO_OPENSSL
16851685
OPENSSL_LIBSSL =
@@ -1697,18 +1697,18 @@ ifdef APPLE_COMMON_CRYPTO
16971697
endif
16981698
endif
16991699
ifndef NO_ICONV
1700-
ifdef NEEDS_LIBICONV
1701-
ifdef ICONVDIR
1700+
ifdef NEEDS_LIBICONV
1701+
ifdef ICONVDIR
17021702
BASIC_CFLAGS += -I$(ICONVDIR)/include
17031703
ICONV_LINK = $(call libpath_template,$(ICONVDIR)/$(lib))
1704-
else
1704+
else
17051705
ICONV_LINK =
1706-
endif
1707-
ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
1706+
endif
1707+
ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
17081708
ICONV_LINK += -lintl
1709-
endif
1709+
endif
17101710
EXTLIBS += $(ICONV_LINK) -liconv
1711-
endif
1711+
endif
17121712
endif
17131713
ifdef ICONV_OMITS_BOM
17141714
BASIC_CFLAGS += -DICONV_OMITS_BOM
@@ -1829,10 +1829,10 @@ ifdef NO_MMAP
18291829
COMPAT_CFLAGS += -DNO_MMAP
18301830
COMPAT_OBJS += compat/mmap.o
18311831
else
1832-
ifdef USE_WIN32_MMAP
1832+
ifdef USE_WIN32_MMAP
18331833
COMPAT_CFLAGS += -DUSE_WIN32_MMAP
18341834
COMPAT_OBJS += compat/win32mmap.o
1835-
endif
1835+
endif
18361836
endif
18371837
ifdef MMAP_PREVENTS_DELETE
18381838
BASIC_CFLAGS += -DMMAP_PREVENTS_DELETE
@@ -1957,11 +1957,11 @@ else
19571957
BASIC_CFLAGS += -DSHA1_DC
19581958
LIB_OBJS += sha1dc_git.o
19591959
ifdef DC_SHA1_EXTERNAL
1960-
ifdef DC_SHA1_SUBMODULE
1961-
ifneq ($(DC_SHA1_SUBMODULE),auto)
1960+
ifdef DC_SHA1_SUBMODULE
1961+
ifneq ($(DC_SHA1_SUBMODULE),auto)
19621962
$(error Only set DC_SHA1_EXTERNAL or DC_SHA1_SUBMODULE, not both)
1963-
endif
1964-
endif
1963+
endif
1964+
endif
19651965
BASIC_CFLAGS += -DDC_SHA1_EXTERNAL
19661966
EXTLIBS += -lsha1detectcoll
19671967
else

0 commit comments

Comments
 (0)