Skip to content

Commit 6176e0a

Browse files
AlfioEmanueleFrestathiagomacieira
authored andcommitted
Makefile: Use file name instead of file descriptor for .config target
1 parent 10f7399 commit 6176e0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ silentcheck: | $(BINLIBRARY)
134134
TESTARGS=-silent $(MAKE) -f $(MAKEFILE) -s check
135135
configure: .config
136136
.config: Makefile.configure
137-
$(MAKE) -f $(SRCDIR)Makefile.configure OUT='>&9' configure 9> $@
137+
$(MAKE) -f $(SRCDIR)Makefile.configure OUT='$@' configure
138138

139139
lib/libtinycbor-freestanding.a: $(TINYCBOR_FREESTANDING_SOURCES:.c=.o)
140140
@$(MKDIR) -p lib

Makefile.configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ sink:
2727
configure: $(foreach it,$(ALLTESTS),check-$(it))
2828

2929
check-%:
30-
@echo $(subst check-,,$@)-tested := 1 $(OUT)
30+
@echo $(subst check-,,$@)-tested := 1 >>$(OUT)
3131
$(if $(V),,@)if printf "$($(subst check-,PROGRAM-,$@))" | \
3232
$(CC) -xc $($(subst check-,CCFLAGS-,$@)) -o /dev/null - $(if $(V),,>/dev/null 2>&1); \
3333
then \
34-
echo $(subst check-,,$@)-pass := 1 $(OUT); \
34+
echo $(subst check-,,$@)-pass := 1 >>$(OUT); \
3535
fi

0 commit comments

Comments
 (0)