Skip to content

Commit

Permalink
Enable .NOTPARALLEL on ripper_srcs
Browse files Browse the repository at this point in the history
And add special treats only for old GNU make.
  • Loading branch information
nobu committed Sep 13, 2023
1 parent 234722e commit e22086b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion common.mk
Expand Up @@ -1288,7 +1288,8 @@ $(REVISION_H)$(yes_baseruby:yes=~disabled~):
# uncommon.mk: $(REVISION_H)
# $(MKFILES): $(REVISION_H)

$(DOT_WAIT)ripper_srcs: $(RIPPER_SRCS)
ripper_srcs: $(RIPPER_SRCS)
.NOTPARALLEL: ripper_srcs

$(RIPPER_SRCS): $(srcdir)/parse.y $(srcdir)/defs/id.def
$(RIPPER_SRCS): $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/ext/ripper/tools/dsl.rb
Expand Down
4 changes: 1 addition & 3 deletions defs/gmake.mk
Expand Up @@ -518,9 +518,7 @@ matz: up
tags:
$(MAKE) GIT="$(GIT)" -C "$(srcdir)" -f defs/tags.mk

ifneq ($(DOT_WAIT),)
ripper_srcs: $(addprefix $(DOT_WAIT) ,$(RIPPER_SRCS))
else
ifeq ($(DOT_WAIT),)
ripper_src =
$(foreach r,$(RIPPER_SRCS),$(eval $(value r): | $(value ripper_src))\
$(eval ripper_src := $(value r)))
Expand Down

0 comments on commit e22086b

Please sign in to comment.