Follow-up Comment #1, bug #20033 (project make):
Hi, its me again. Find below a trivial makefile to recreate this. run 'make
setup && make -j2' to get a segfault.
Cheers,
Rasmus
A := $(wildcard *.a)
.PHONY: all
all: $(A:.a=.b)
.PHONY: clean
clean:
rm -f $(A)
.PHONY: setup
setup:
@touch 1.a 2.a 3.a 4.a 5.a 6.a
define d1
@echo lala $(1)
@sleep 1
endef
define d2
@echo tyty $(1)
@sleep 1
endef
%.b : %.a
$(eval CHECKSUM := $(word 1,$(shell cat $^ | sha1sum))) $(if
$(wildcard $(CACHEDIR)/$(CHECKSUM)),\
$(call d1,$(CHECKSUM)),\
$(call d2,$(CHECKSUM)))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20033>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make