URL:
<http://savannah.gnu.org/bugs/?38827>
Summary: Make tool does not work for pre-build steps with
parallel build option
Project: make
Submitted by: python12
Submitted on: Thu 25 Apr 2013 02:23:24 PM GMT
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.82
Operating System: Any
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Here is a simple makefile to reproduce the bug:
# invoke this makefile with parallel jobs:
# make -j8 all
# 1. the my-main-rule rule has a dependency on the dummyfolder
# 2. the dummyfolder is created during pre-build step
# 3. pre-build rule is a prerequisite for the my-main-rule which means
# my-main-rule executes only if pre-build step finished
#
# It fails to execute make -j8 all:
# mingw32-make: *** No rule to make target `dummyfolder', needed by
`my-main-rule'. Stop.
# mingw32-make: *** Waiting for unfinished jobs....
# ' Before executing PRE BUILD step '
# mkdir dummyfolder
# ' After executing PRE BUILD step '
all: main-build
main-build: pre-build my-main-rule
# Tool invocations
my-main-rule: dummyfolder | pre-build
@echo 'Building target'
pre-build:
-@echo ' Before executing PRE BUILD step '
-mkdir dummyfolder
-@echo ' After executing PRE BUILD step '
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 25 Apr 2013 02:23:24 PM GMT Name: makefile Size: 880B By:
python12
<http://savannah.gnu.org/bugs/download.php?file_id=27938>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38827>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make